Laravel

How To Generate Barcode In Laravel 8

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’,…

Read More

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

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…

Read More

Laravel Specific Table Migration

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.…

Read More