X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar-X/database/seeds
home
/
gfecatvj
/
sites
/
realesbar-X
/
database
/
seeds
/
📁
..
📄
DatabaseSeeder.php
(4.51 KB)
Editing: DatabaseSeeder.php
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { DB::table('users')->insert([ 'stName' => 'Am', 'laName' => 'min', 'username' => 'Adminis', 'State' => '', 'country' => '', 'role' => 1, 'date_of_birth' => '1990-03-02 05:00:00', 'profile_picture' => 'G-Admin_1563013171.png', 'email' => 'admin@localrentandbuy.com', 'password' => Hash::make('admin1234'), ]); DB::table('users')->insert([ 'stName' => 'jib', 'laName' => 'real', 'username' => 'agent1', 'State' => '', 'country' => '', 'role' => 2, 'date_of_birth' => '1990-03-02 05:00:00', 'profile_picture' => 'G-Admin_1563013171.png', 'email' => 'kooreal@gmail.com', 'password' => Hash::make('admin1234'), ]); DB::table('properties')->insert([ 'status' => '3', //'agent_id' => , 'title' => '4 bedroom house ready to sell', 'price' => 230000, 'price_postfix' => 'Full price', 'bedrooms' => 4, 'bathrooms' => 4, 'garages' => 0, 'type' => 'house', 'property_status' => 'available', 'description' => 'A four bedroom house with all the amenities you will need and full furnished.', 'img' => '[ { "id":"img_00002.jpg", "name":"1576987506.jpeg", "url":"ppty/img/img_00002.jpg", "description":"front" }, { "id":"img_00002.jpg", "name":"1576987506.jpeg", "url":"ppty/img/img_00002.jpg", "description":"front" } ]', 'country' => 'Ghana', 'region' => 'Ashanti', 'city' => 'Kumasi', 'address' => NULL, 'amenities' => '[ "Air conditioning", "Heating", "Balcony", "Internet", "Dishwasher", "Parking" ]', ]); DB::table('articles')->insert([ 'status' => '3', 'user_id' => 2, 'title' => 'How to buy your own home in Ghana', 'img' => '85-min.jpg', 'body' => "<p>It can take almost a full year to get your finances in line before you buy a home, housing experts say. So if you know you want to buy a house within the next six months or so — such as people hoping to make the leap in the spring — you should start your financial housekeeping now. Preparing sooner rather than later can increase your chances of landing the lowest interest rate possible, which can lead to thousands of dollars in savings over the life of the loan. People who skip some of these steps may miss out on their dream home or delay their plans. Here is a checklist of sorts to give you your best shot at landing a good deal:</p><br><p>1. Know your budget. 2. Check your credit report. 3. Maximize your credit score. 4. Figure out what your down payment should be. 5. Build a housing emergency fund. 6. Avoid major purchases. 7. Shop around. 8. Before you see homes, get a preapproval letter.</p><small><a href='https://www.freepik.com/photos/background'>Background photo created by ijeab - www.freepik.com</a><small>", 'tags' => 'Ghana, Homes, Family,', 'category_id' => 1 ]); DB::table('roles')-> insert([ [ 'name' => 'Admin', 'slug' => 'admin', 'created_at' => date("Y-m-d H:i:s") ], [ 'name' => 'Agent', 'slug' => 'agent', 'created_at' => date("Y-m-d H:i:s") ], [ 'name' => 'User', 'slug' => 'user', 'created_at' => date("Y-m-d H:i:s") ] ]); } }
Upload File
Create Folder