How do you assign laravel value like this {{ auth->()->user()->first_name }} on this vuejs textfield
Tag: laravel
how to retrieve data from laravel relationship?
Hello im trying to do a quiz app with laravel and im struggeling with retrieving my questions with category.. i have a unsightly solution with this but it’s not dynamically.. public function …
Call to undefined method links()
I’m trying to display featured game in my home page but i’m getting the error : Call to undefined method IlluminateDatabaseEloquentBuilder::links() when i’m changing in the HomeController : From …
hidden magic in Laravel blade components
I had anonymous component resourcesviewscomponentshomepagefeedback.blade.php to render feedback on homepage. From the beginning it was just html. Then I decided to connect Class file. I already had another View Class component and I just copied it manually instead of using artisan command. AppViewComponentsFe…
Laravel websocket cant connect to pusher ERR_CERT_AUTHORITY_INVALID
I have a laravel application with websockets. I already setup all the needs for the websocket and pusher config. But whenever I test my broadcast channel I got app.js:58283 WebSocket connection to ‘wss://127.0.0.1/app/644a4ac1988060882370?protocol=7&client=js&version=6.0.2&flash=false’…
How to add new method chaining for Laravel Eloquent?
I try to add new method for simplify and reusable code but I failed User Model : public function products() { return $this->hasMany(‘AppProduct’); } public function obsolate() { return $…
OpenSSL Error messages: error:14095126 unexpected eof while reading
Description This error: returns when: Steps to Reproduce Video to download: https://www.youtube.com/watch?v=r5NzAksjfDI Extract the video id: Get the downloadable url Get the array key for the specified video quality etc. Set $url to array Disable SSL Get the file from the url Send the video back to front end…
Convert string to date datatype in SQL Server in PHP Laravel
I’m trying to get a product by id between a specific date range but the problem I’m facing is: date is in string format for some weird reason dates are stored in the database with an incomplete …
Laravel: Use makeVisible() after a hasMany() call
I’m using lumen to develop a REST API. I used for that 2 models User and Post. In my User model I can get all the user’s posts using the hasMany() method: <?php namespace App; use Illuminate…
Store file to s3 bucket using php Laravel
please I want to store a file in s3 according to its directory, but when I do this code it saves the string “storage / ;;;” on a file but not the docx with its content?? $path = “storage/…