CRUD System by laravel
Laravel CRUD system for laravel developers'. It's easy to install and run., (*1)
Installing
Run create-project command with composer to install this project., (*2)
Here is the full installation command -, (*3)
composer create-project ratulhasan/laravel-crud:dev-master
Now Change this options bellow within your .env,, (*4)
To rename .env.example, run, (*5)
php -r "copy('.env.example', '.env');"
DB_DATABASE=homestead // your database name
DB_USERNAME=homestead // your database user name
DB_PASSWORD=secret // your database password
cd to/your/project/dir
Give this command again:, (*6)
composer update
Change your .env.example to .env and make necessary changes in that file especially database configurations to avoid db error. Then, (*7)
php artisan key:generate
run project., (*8)
in Table Name (input) give your database table name & hit save.
1 Controller should create accourding to your given table name
1 view folder should create accourding to your given table name
A CRUD routes should create accourding to your given table name in web.php, (*9)
To check
Url: http://path/to/root/lara-crud/table_name
You should see a list page., (*10)
Now add this to your nav
/laravel-crud/resources/views/admin/pages/navbar.blade.php, (*11)
For Linux user
The stream or file "/root/path/lara-crud/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied, (*12)
if see this kind of Permission denied error, (*13)
just run this command from outside your project root directory to permit read and write, (*14)
sudo chmod -R 777 [directory_name]
For enable .htaccess
sudo gedit /etc/apache2/apache2.conf
Then find the line where there is, (*15)
, (*16)
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
, (*17)
replace "None" with "All", (*18)
AllowOverride All, (*19)
Happy coding
Author
Ratul Hasan | Email, (*20)
License
This project is licensed under the MIT License - see the LICENSE.md file for details, (*21)