In this tutorial, i would like to share with you how to build restful api in laravel 5.5 application. Here i will share with you create basic and simple resource api route with json response. you can simply use
This is your normal Jquery request with custom header 'X-hardik' and password '123456'. Now How to check this request in your laravel project. first fire this command and create middleware. php artisan make:middleware checkHeader Ok, now you can check in your project path : ...
Laravelcomes with built-in tools to automate and simplify the migration process. In this guide, we’ll go in-depth on how to create, run, and manage migrations inLaravel applications. If you’re just getting started with Laravel but still want to try out ButterCMS, check out ourLaravel st...
Packages are a great way to make a bunch of code reusable and easily shareable. You may have already come across many Laravel packages, both official and community-maintained—some of them simple and some very complex. But have you ever wondered how you can put “your” code into a package...
Now everything's set up, we can use our two defined APIs in our app. For this example, we're using the simpler approach. Create a Laravel controller: php artisan make:controller ApiController <?php namespace App\Http\Controllers; use Usamamuneerchaudhary\LaraClient\LaraClient; class ApiCont...
'saas.test', // Add the ones that you use. I use this one with Laravel Valet. ], #Tenant app Now, the fun part. This part is almost too simple. To make some code tenant-aware, all you need to do is: move the migrations to thetenant/directory ...
Laravel provides a simple way to generate controllers using the Artisan command-line tool. To create a new controller, use the following command: phpartisanmake:controllerMyController This command creates a new file namedMyController.phpin theapp/Http/Controllersdirectory. The new controller file will...
sudo nano /etc/apache2/sites-available/laravel.conf Within the file, write the following configuration. Make sure to replace the directory placeholders with the actual path andthedomain.comwith your server IP address: <VirtualHost *:80> ServerName thedomain.com ServerAdmin webmaster@thedomain.com...
I'm trying to integate api service into my laravel web app. From login & every operation in my web app is using the api. But I always get response 401 unauthorized whenever I hit the api endpoint. First of all I logged in using this request to ap
Now we need to add this to our Laravel Backpack login page. Before You Begin: Install Laravel Backpack Make sure you have installed Laravel 11 and Backpack v6. composer require backpack/crud php artisan backpack:install After answering a series of questions, you'll have Laravel ...