php artisan make:migration create_students_table --create=students
Navigate to the database/migrations folder and select your file
Add the following lines to the code
$table->string('name');
<?php | |
return [ | |
/** | |
* his function determines whether run-together words will be treated as legal | |
* compounds. That is, "thecat" will be a legal compound, although there should be | |
* a space between the two words | |
*/ | |
'run_together'=>false, | |
/** | |
* Set a file that contains replacement pairs. |
{ | |
"0": { | |
"worker_details": { | |
"role": "quia", | |
"name": "Shaun Leuschke" | |
} | |
}, | |
"1": { | |
"worker_details": { | |
"role": "quis", |
/** | |
* Ofcos the classes should be in different files | |
* Assumes you are using a command bus to raise events I happen to love Jeff Way https://github.com/laracasts/Commander | |
* | |
* With this architecture you don't need to modify any existing classes for new headers just add a new class and should work | |
* | |
* More than one class can handle the requests | |
*/ | |
class CommitComment extends GithubRequest { |
<?php | |
namespace Chencha\Autosuggest\Validators; | |
use Chencha\Autosuggest\Exceptions\PspellIsNotInstalled; | |
class CheckPspellIsInstalled { | |
function __construct() |
<?php | |
namespace Model\Processors; | |
use DB; | |
/** | |
* Class GetAllColumns | |
* @package Model\Processors | |
* - See more at: http://laravelsnippets.com/snippets/get-all-columns-names-from-a-eloquent-model#sthash.wgqPKvG9.dpuf | |
*/ | |
trait GetAllColumns | |
{ |
/(")([\s\S]*?)("[\s\S]*?",)/g |
#!/usr/bin/env python | |
# encoding: utf-8 | |
# Code in your services folder | |
class StoreInDb(): | |
def run(data): | |
StoreInDb.storeLogic(data) | |
data['db_status'] = "User stored in database" |
<table border="1"> | |
<!--Table headers --> | |
<tr> | |
<td>Months</td> | |
<td>Days</td> | |
<td>Last day</td> | |
</tr> | |
<?php |
<?php | |
php artisan make:migration create_students_table --create=students
Navigate to the database/migrations folder and select your file
Add the following lines to the code
$table->string('name');