-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.txt
More file actions
48 lines (27 loc) · 1.13 KB
/
Copy pathconfiguration.txt
File metadata and controls
48 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
php artisan key:generate = To set new application key.
php artisan make:migration <table_name> = To create new table
php artisan migrate = To run new migrations
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
php artisan cache:clear
php artisan make:model <Model> path = corresponding model
php artisan make:seeder UsersTableSeeder : to make seeder
php artisan db:seed
Killed error on server
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
You need to add the path to your migrations folder to the classmap array. Then run the following three commands...
php artisan clear-compiled
composer dump-autoload
php artisan optimize
protected $connection = 'connection-name'; // to access new connection from schema
php artisan tinker
use ::with(array('functionName'=> function($query) use $variable{ $query->get();}))->get();
connect to multiple database :
protected $connection = 'mysql_auth';
or setConnection('mysql_auth')
SQL query log
dd(DB::getQueryLog())
------APACHE
To check status: service apache2 status