Laravel 5.5 Simple CMS Website example using asgardcms
In this post we will give you information about Laravel 5.5 Simple CMS Website example using asgardcms. Hear we will give you detail about Laravel 5.5 Simple CMS Website example using asgardcmsAnd how to use it also give you demo for it if it is necessary.
Today i am going to share with you how to use cms in laravel 5.5 application. As we know wordpress is best cms in the world and almost people like to use cms for his company website or blog. But if we think about codding style, security or structure then laravel framework is a best. So There are several provide laravel cms to make quick back end admin panel and also work like wordpress blog.
So, in this post i would like to introduce same simple cms using laravel, that know as “asgard cms”. asgard cms provide very simple modules function and you can simply quick create modules like on wordpress. You can also get there are new theme from their website. They also provide many feature like as bellow:
Laravel 5.5 group by doesn't work - fixed
In this post we will give you information about Laravel 5.5 group by doesn't work - fixed. Hear we will give you detail about Laravel 5.5 group by doesn't work - fixedAnd how to use it also give you demo for it if it is necessary.
Someday ago i just installed laravel 5.5 application and i was checking new feature and making some examples. But i was working on database query builder example one by one, i got following error when i used group by on single column.
My query was like as bellow example, so you can see on database query i simple get all users and group by with name. So, let's simply see how it is:
DB Query:
$users = DB::table("users")
->groupBy("name")
->get();
dd($users);
But when i run above query using database query builder i got following error, as you can see:
SQLSTATE[42000]: Syntax error or access violation: 1055 'laravel_test.users.id' isn't in GROUP BY (SQL: select * from 'users' group by 'name')
I was thinking what is the issue because without group by it was working, but at last i found it how to solve it So we have to simply "strict" mode make it true into false in database.php file. So let's do it as bellow:
config/database.php
...
'strict' => true,
To
'strict' => false,
....
After that i hope you found your solution.
Thank you...
Hope this code and post will helped you for implement Laravel 5.5 group by doesn't work - fixed. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs
- Dashboard
- Page Management
- Media Management
- Flexible Permissions
- Easy Module Management
- Customise your Menus
- Settings
- Role and Permission
- Themes
So, here i will give you very simple and quick example to create project or website in laravel application. So you have to just simple follow bellow some command and get quick setup and using laravel application.
So let’s just run bellow command for install asgardcms project.
Install Asgardcms Project:
composer create-project asgardcms/platform asgard
After run above command, you will get fresh installation of asgardcms project so now you have to install asgardcms configuration by following command:
Install AsgardCMS Configuration:
php artisan asgard:install
After run above command you have to setup, your project configuration like as bellow i gave you.
Configuration:
Enter your database driver (e.g. mysql, pgsql) [mysql]:
> mysql
Enter your database host [127.0.0.1]:
> 127.0.0.1
Enter your database port [3306]:
> 3306
Enter your database name [homestead]:
> asgurd
Enter your database username [homestead]:
> root
Enter your database password (leave for no password) [secret]:
> root
Database successfully configured
Enter you application url (e.g. http://localhost, http://dev.example.com) [http://localhost]:
> http://localhost
User Module
Starting the User Module setup...
Enter your first name:
> Hardik
Enter your last name:
> Savani
Enter your email address:
> admin@gmail.com
Enter a password:
> 123456
Please confirm your password:
> 123456
Please wait while the admin account is configured...
Do you want to remove composer.lock from .gitignore ? (yes/no) [yes]:
> yes
Do you want to remove package-lock.json from .gitignore ? (yes/no) [yes]:
> yes
The application is now installed
Platform ready! You can now login with your username and password at /backend
Now we are ready to run our laravel cms using bellow command:
php artisan serve
Now you can open bellow url on your browser:
http://localhost:8000/backend
Now simple use bellow credential:
Email: admin@gmail.com
Password: 123456
Then you can get dashboard, you can see how to manage it. i am going to set three screen shot so you can see how it looks.
Looks 1:
Looks 2:
Looks 3:
You can get more information about asgardcms from here : Click Here
I hope it can help you.
Hope this code and post will helped you for implement Laravel 5.5 Simple CMS Website example using asgardcms. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs