Category "laravel"

I need to link Google Sheet with my Laravel

i want to link my laravel app with Google sheet i use this package : Google Sheets API v4 for Laravel my function : public function doPostData(){ $

Laravel Eloquent vs DB facade: Why use Eloquent and decrease performance? [closed]

I did some performance tests between Laravel's DB facade query builder and Laravel's Eloquent ORM. The DB facade was much faster than Eloquent

CORS request did not succeed

I have a problem when I want to create an authentication system using VueJs as the frontend (http://localhost:8080/#/login) and Laravel 5.6 as the backend. When

How to check user Permissions using Custom Middleware in Laravel

I'm developing a Laravel ACL System. My base Table's are users,roles,permissions and pivot tables are role_user,role_permission,user_permission. I want to che

What is the meaning of Illuminate in Laravel? [closed]

Every time I am writing code in different classes of Laravel where I saw the keyword Illuminate always. I cannot understand what is the meanin

how to upload binary image to sql server using php laravel

As far as I know, uploading images to databases is wrong, but in this specific issue, I have to upload images to SQL Server. I found some results, for example u

How can I specify Partial Mockup for a Laravel Facade?

First I tried this $mock = m::mock('Cartalyst\Sentry\Facades\Laravel\Sentry'); $mock->shouldReceive('getUser')->once()->andReturn($userInst); But it

Ajax GET request fails in laravel 8

when i try to send a GET request with tutorial ,but its not working and end up with 500 internal server error I cant find any error by searching on forum or sta

enroll_table three field fetch to payment form to create payment field in laravel 5.5

(figure 1) The above figure 1 image is the snapshot of enroll table, (it belong to the enroll model, enrolls table) (figure 2) Figure 2 is the page view. My q

PDOException SQLSTATE[HY000] [2002] No such file or directory

I believe that I've successfully deployed my (very basic) site to fortrabbit, but as soon as I connect to SSH to run some commands (such as php artisan migrate

Artisan command for clearing all session data in Laravel

What is the artisan command for clearing all session data in Laravel, I'm looking for something like: $ php artisan session:clear But apparently it does not

Class App\Http\Controllers\UserController Does Not Exist

Having the issue when loading the route /users or /user/add and being return an error of; ReflectionException in Route.php line 280: Class App\Http\Contro

How to change the app environment at run time?

How can I change the app environment at run time? I have some classes that only bind in the service provider in production. I'd like to assert with a unit test

Laravel 8: Array to string conversion while calling route:list

I have a resource controller which is ArticleController and I want to call this controller in web.php, so I coded: use App\Http\Controllers\Admin\PanelControlle

return table except deleted_at (softdeletes) laravel

I'm trying to return a table without deleted rows (softdeletes) This is my code public function getMailRecipients($meoId){ return DB::table('mail_recipients

Implementing route based models in Vue3 (Inertia.js)

I am following the following this guide, that shows how to enable "Route Based Modals" in Inertia.js. The post is written for Vue2, and I am using Vue3 - and I

Sliders in Laravel

I am not able to show images in slider one by one, it displays all images at once. My static code is here and it works well with sliding images. <secti

Fetch files from next cloud storage and display in Laravel website

I have a website built with Laravel. I need to fetch files from my nextcloud storage and display in the website. I have successfully installed sabre/dav to crea

Laravel change log path

I'm using the following change my log path: \Log::useDailyFiles(...) But I still get log entries in /storage/logs/. How can I use only my log path?

Laravel 5.2: Unable to locate factory with name [default]

I want to seed database when I use this public function run() { $users = factory(app\User::class, 3)->create(); } Add three user in database but wh