Category

Laravel

Category

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelLiveWire Step 2: Open project in code and use vs code terminal. cd laravelLiveWire Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Create Migration and Model php artisan make:migration create_posts_table <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelCustomRoutes Step 2: Open project in code and use vs code terminal. cd laravelCustomRoutes Step 3: Create Custom Route File Here, I will create following route file with multiple listed route. 1) User Routes: Here you have to define routes in web.php in routes folder. in that file, you have declared routes for user login. 2) Admin Routes: Here you have…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravel7Ckeditor Step 2: Open project in code and use vs code terminal. cd laravel7Ckeditor Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Route Open routes/web.php file. Route::get(‘/’, ‘CkeditorController@index’); Route::post(‘ckeditor/upload’, ‘CkeditorController@upload’)->name(‘ckeditor.upload’); Step 5: Controller Create CkeditorController Controller. php artisan make:controller CkeditorController Open app/Http/Controllers/CkeditorController.php file. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class CkeditorController…

https://youtu.be/vfuAPIYSYvc Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelDragDrop Step 2: Open project in code and use vs code terminal. cd laravelDragDrop Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Route Open routes/web.php file. Define 2 routes Route::get(‘image’, ‘DropzoneController@dropzone’); Route::post(‘dropzone/store’, ‘DropzoneController@dropzoneStore’)->name(‘dropzone.store’); Step 5: Controller Create DropzoneController Controller. php artisan make:controller DropzoneController Open app/Http/Controllers/DropzoneController.php file. <?php namespace App\Http\Controllers;…

https://www.youtube.com/watch?v=Xs_ohuTsdx8&ab_channel=Realprogrammer Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravel7autocomplete Step 2: Open project in code and use vs code terminal. cd laravel7autocomplete Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: run Migration command php artisan make:migration create_category_table Now, navigate to database/migration/ directory from the project root.Find a PHP file which ends with create_category_table and open it. Define…

<?php $str = ‘<p><span style=”color: #444444; font-family: arial; font-size: 16px; letter-spacing: 0.6px; background-color: #ffffff;”>Established in year</span><strong style=”color: #444444; font-family: arial; font-size: 16px; letter-spacing: 0.6px; background-color: #ffffff;”>&nbsp;2007,&nbsp;</strong><strong style=”color: #444444; font-family: arial; font-size: 16px; letter-spacing: 0.6px; background-color: #ffffff;”>Galaxy Computer&nbsp;</strong><span style=”color: #444444; font-family: arial; font-size: 16px; letter-spacing: 0.6px; background-color: #ffffff;”>is&nbsp;</span><strong style=”color: #444444; font-family: arial; font-size: 16px; letter-spacing: 0.6px; background-color: #ffffff;”>Wholesale Trader and Service Provider</strong><span style=”color: #444444; font-family: arial; font-size: 16px; letter-spacing: 0.6px; background-color: #ffffff;”>&nbsp;of&nbsp;</span><strong style=”color: #444444; font-family: arial;…

In folder config => database.php make sure mysql strict is false, like this ‘mysql’ => [ ‘driver’ => ‘mysql’, ‘url’ => env(‘DATABASE_URL’), ‘host’ => env(‘DB_HOST’, ‘127.0.0.1’), ‘port’ => env(‘DB_PORT’, ‘3306’), ‘database’ => env(‘DB_DATABASE’, ‘forge’), ‘username’ => env(‘DB_USERNAME’, ‘forge’), ‘password’ => env(‘DB_PASSWORD’, ”), ‘unix_socket’ => env(‘DB_SOCKET’, ”), ‘charset’ => ‘utf8mb4’, ‘collation’ => ‘utf8mb4_unicode_ci’, ‘prefix’ => ”, ‘prefix_indexes’ => true, ‘strict’ => false, ‘engine’ => null, ‘options’ => extension_loaded(‘pdo_mysql’) ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env(‘MYSQL_ATTR_SSL_CA’), ]) : [], ], if strict is true, make it…