Tanara is a starter theme made with Laravel{:target="_blank"}, Vue.js and Bootstrap.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sekolah = New stdClass Object | |
( | |
[nama] => SMP N 4 CIBINONG | |
[sekolah_id] => E0E61E14-2CF5-E011-80BF-795521474989 | |
[npsn] => 20254243 | |
[jumlah_kirim] => 5 | |
[ptk] => 49 | |
[pegawai] => 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE ref.negara | |
( | |
negara_id character(2) NOT NULL, | |
nama character varying(45) NOT NULL, | |
luar_negeri numeric(1,0) NOT NULL, | |
create_date timestamp(0) without time zone NOT NULL, | |
last_update timestamp(0) without time zone NOT NULL, | |
expired_date timestamp(0) without time zone, | |
last_sync timestamp(0) without time zone NOT NULL, | |
CONSTRAINT negara_pkey PRIMARY KEY (negara_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- edit file .\database\seeds\DatabaseSeeder.php | |
- add $this->call(AdminUserSeeder::class); | |
``` | |
public function run() | |
{ | |
$this->call(AdminUserSeeder::class); | |
//$this->call(UsersTableSeeder::class); | |
} | |
``` | |
edit file .\database\seeds\AdminUserSeeder.php |
In this php example (app/Http/Controllers/Auth/LoginController.php
) my model is called Client
and the custom field for login validation is status
. (Client->status
)
Add in your resources/lang/en/auth.php
file :
'failed_status' => 'Your account is inactive yet. Please confirm your e-mail address.',
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function up() | |
{ | |
Schema::table('todolists', function(Blueprint $table) | |
{ | |
$table->integer('category_id')->unsigned()->after('id'); | |
$table->foreign('category_id')->references('id')->on('categories'); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function down() | |
{ | |
Schema::table('todolists', function(Blueprint $table) | |
{ | |
$table->dropForeign('todolists_category_id_foreign'); | |
$table->dropColumn('category_id'); | |
}); | |
} |
NewerOlder