Getting Started With Laravel Lite Blog
Published October 18, 2019 • 2 mins read
Installing Lite Blog is pretty simple. Its just like installing a Laravel application using composer.
composer create-project --prefer-dist stephenjude/lite-blog myblog
After the installation, create your database and update .env file with your database credentials. After that run the setup command inside the project directory.
cd myblog php artisan setup:blog
This will publish the public assets for the publishing platform (wink) and generate a login credentials for you.
myblog.test on your local machine to see your homepage.
To create post visit
myblog.test/editor and login with the generated credentials.
Here we are going to set the site configuration for our blog. The site configs are inside the
'meta' => [ 'site_name' => 'My Perosnal Blog', 'mantra' => 'Web & Mobile Developer', ],
site_name is the title of the blog while the
mantra is what the site stands for usually under the title of the blog. Update them to fit your taste.
Social Profile Links
config/services.php add your social media profile links.
'social' => [ 'linkedin' => 'https://www.linkedin.com/in/username/', 'email' => 'mailto:email@example.com', 'medium' => 'https://medium.com/@username', 'github' => 'https://github.com/username', 'twitter' => 'https://twitter.com/username', 'atom' => '#', ],
When creating post you might like to make use of free professional photos. Wink comes with Unsplash integration out of the box so head over to Unspash, create a new Unsplash app. Grab the 'Access Key' and add it to your
.env file as
Compiling assets (Optional)
npm install npm run dev
SEO - Search Engine Optimizations
The Laravel publishing platform I used on this project (wink) made a very nice provision for SEO. It was designed that every post you publish has fields where you can add your post's SEO data. I have implemented this on the
For the SEO image, I made use of post featured image. So automatically your featured image will appear as you share the post on twitter, facebook or any other social network sites.
I also used post tags as SEO keywords so adding tags to your post is a plus.
If you have any question you can reach out to me on twitter.
Litehost is my side project which is a shared hosting platform with PHP & Laravel developers in mind. It has Composer, Git & PHP CLI pre-installed on its servers. SSH access is also granted on request. Litehost is pretty affordable. Try it today.