44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
|
<?php
|
||
|
|
||
|
use App\Models\Menuitems;
|
||
|
use App\Models\Menulocations;
|
||
|
use App\Models\Preparationclasses;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CCMS
|
||
|
{
|
||
|
// public function __construct()
|
||
|
// {
|
||
|
// $this->initDB();
|
||
|
// }
|
||
|
|
||
|
|
||
|
// public static function getSiteVars()
|
||
|
// {
|
||
|
// $siteVars = DB::table("settings")->where('status', 1)->orderby('display_order')->first();
|
||
|
// return $siteVars;
|
||
|
// }
|
||
|
|
||
|
// private function initDB()
|
||
|
// {
|
||
|
// static $initialized = false;
|
||
|
// if (!$initialized) {
|
||
|
|
||
|
|
||
|
// if (!(DB::table('users')->first())) {
|
||
|
// DB::statement("INSERT INTO `tbl_users` (`name`,`email`,`username`,`password`,`status`) VALUES ('Prajwal Adhikari','prajwalbro@hotmail.com','prajwalbro@hotmail.com','$2y$10$3zlF9VeXexzWKRDPZuDio.W7RZIC3tU.cjwMoLzG8ki8bVwAQn1WW','1');");
|
||
|
// }
|
||
|
// if (!(DB::table('settings')->first())) {
|
||
|
// DB::statement("INSERT INTO `tbl_settings` (`title`, `description`, `status`) values ('Bibhuti LMS', '', '1');");
|
||
|
// }
|
||
|
// if (!(DB::table('articles')->first())) {
|
||
|
// DB::statement("INSERT INTO `tbl_articles` (`title`,`alias`, `text`, `status`) VALUES ('Company Profile', 'company-profile','Welcome Article', '1');");
|
||
|
// }
|
||
|
|
||
|
// $initialized = true;
|
||
|
// }
|
||
|
// }
|
||
|
}
|