CodeIgniter extended Model for CI Model.
Copy and paste MY_Model.php file to core directory: application/core/MY_Model.php
For example: user_model located at application/models/user_model.php :
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| dsdfsdfsdf |
| <add name="DefaultConnection" connectionString="Data Source=WINDOWS-GES0RR6; initial catalog =PlutoCodeFirst; integrated security=SSPI" providerName="System.Data.SqlClient" /> |
Model::
/*Select*/
select('col1','col2')
->select(array('col1','col2'))
->select(DB::raw('businesses.*, COUNT(reviews.id) as no_of_ratings, IFNULL(sum(reviews.score),0) as rating'))
->addSelect('col3','col4')
->distinct() // distinct select
Artisan
// Displays help for a given command
php artisan --help OR -h
// Do not output any message
php artisan --quiet OR -q
// Display this application version
php artisan --version OR -V
// Do not ask any interactive question
php artisan --no-interaction OR -nThis is a list of Collection methods, ordered by purpose, instead of just an alphabetical order.
This allows you to quickly find the methods for the action you want to do, instead of checking the list one by one.
Dumping ground for Links
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
When starting a new Laravel project, these are the things I do to help speed my process up and provide the best tools for the project. As of the time of this writing, Laravel 6 is the default dist version.
NOTE:
See this gist for more items to install (but note that this was for Laravel 5 and some of these are no longer necessary as Laravel matures).
Allows the IDE to understand Laravel special syntax (facade, factories, etc)