Edit File: IntroTableSeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class IntroTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('intros')->insert([ [ 'image' => '1.png', 'title' => json_encode(['ar' => 'مرحبا بك في تطبيقنا', 'en' => 'Welcome to our app'], JSON_UNESCAPED_UNICODE), 'description' => json_encode(['ar' => 'يحتوي التطبيق علي العديد من المميزات التي تسهل تجربة المستخدم', 'en' => 'The application contains many features that facilitate the user experience'], JSON_UNESCAPED_UNICODE), ], [ 'image' => '2.png', 'title' => json_encode(['ar' => 'طريقة الاستخدام', 'en' => 'How to use'], JSON_UNESCAPED_UNICODE), 'description' => json_encode(['ar' => 'يوجد نوعين من المستخدمين في التطبيق يجب الاختيار بينهم', 'en' => 'There are two types of users in the application to choose between them'], JSON_UNESCAPED_UNICODE), ] ]); } }
Back to File Manager