Category

Laravel

Category

Laravel 8 Botman Chatbot in this tutorial, I will show you how we can setup Botman Chatbot in your Laravel application. Also, I will show you how to Install Botman and Botman Driver in laravel 8 app. First of all, you need to follow this step. Step 1: Install laravel 8 AppStep 2: Database Configuration in .env fileStep 3: Install Botman and Botman DriverStep 4: Create Configuration FileStep 5: Create ControllerStep 6: Add RouteStep 7…

How To Generate Barcode In Laravel 8 Step 1: Create the application We need to run command to create Laravel 8 projects. composer create-project –prefer-dist laravel/laravel laravel-8-barcode-generator https://www.youtube.com/watch?v=ob2gMikwJnI&t=6s Step 2: Install picqer/php-barcode-generator Package composer require picqer/php-barcode-generator Step 3: Create Route Now I am going to create route for calling controller and function. routes/web.php <?php Route::view(‘barcode’, ‘barcode’); Step 4: Create Blade file resources/views/barcode.blade.php <!DOCTYPE html> <html> <head> <title>Barcode Generator In Laravel 8 </title> <!– CSS only…

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted To get the current memory_limit value, run: php -r “echo ini_get(‘memory_limit’).PHP_EOL;” Check php configuration file php –ini sudo nano /usr/local/etc/php/7.4/php.ini Try increasing the limit in your php.ini file (ex. /etc/php5/cli/php.ini for Debian-like systems): ; Use -1 for unlimited or define an explicit value like 2G memory_limit = -1

Laravel Specific Table Migration First you should create one migration file for your table like: public function up() { Schema::create(‘test’, function (Blueprint $table) { $table->increments(‘id’); $table->string(‘fname’,255); $table->string(‘lname’,255); $table->rememberToken(); $table->timestamps(); }); } After migrations you should put the particular file name. or if you have any folder inside migration then just add that folder name after the migration. php artisan migrate:refresh –path=database/migrations/2020_04_19_133129_create_tests_table.php

On my Ubuntu LAMP installation, I solved this problem with the following 2 changes. Enable mod_rewrite on the apache server: sudo a2enmod rewrite .Edit /etc/apache2/apache2.conf, changing the “AllowOverride” directive for the /var/www directory (which is my main document root): AllowOverride AllThen restart the Apache server: service apache2 restart

How to Send Uploaded File as Email Attachment in Laravel Create the upload formProcess the submitted formCreate email sender classCreate the email template <form action=”{{ url(‘uploadDocument’) }}” method=”post” enctype=”multipart/form-data”> @csrf <div class=”form-group”> <input type=”text” class=”form-control” name=”name” placeholder=”Name”> </div> <div class=”form-group”> <input type=”email” class=”form-control” name=”email” placeholder=”Email address”> </div> <div class=”form-group”> <input type=”number” class=”form-control” name=”contact” placeholder=”Contact number”> </div> <div class=”form-group”> <input type=”text” class=”jobTitle form-control” name=”area” placeholder=”Functional Area”> </div> <div class=”form-group”> <input type=”file” name=”document” class=”form-control”> </div> <button type=”submit”…

How to use multiple authentication guards in Laravel 8 app https://youtu.be/-b3j0nOuF44 Prerequisites PHP >= 7.3BCMath PHP ExtensionCtype PHP ExtensionFileinfo PHP extensionJSON PHP ExtensionMbstring PHP ExtensionOpenSSL PHP ExtensionPDO PHP ExtensionTokenizer PHP ExtensionXML PHP Extension Getting started Check all Prerequisites are installed in your machine. then this tutorial is already looking for you, we will create 2 user class – admin, blogger and we will make guards for 2 classes and restriction different parts of the application…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravel8ajax Step 2: Install Yajra Datatable We going to install yajra datatable composer package for datatable. composer require yajra/laravel-datatables-oracle After that you need to set providers and alias. config/app.php ….. ‘providers’ => [ …. Yajra\DataTables\DataTablesServiceProvider::class, ] ‘aliases’ => [ …. ‘DataTables’ => Yajra\DataTables\Facades\DataTables::class, ] Open project in code and use vs code terminal. code . Step 3: find .env file in…

Step 1: Install Laravel 8 Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel8 Step 2: Going inside of project using the command cd laravel8 Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel8 DB_USERNAME=root [email protected] Step 4: Create ajax_images Table and Model also. Here, I have created migration for ajax_images using Laravel 8 php artisan command, you can check…