Questions tagged [laravel-5.8]

The well-established Laravel 5.8, an open-source PHP framework developed by Taylor Otwell, was officially launched on February 26, 2019. If you have queries or issues specifically related to Laravel 5.8, make sure to include the [laravel-5] tag. For more general inquiries about Laravel, use the [laravel] tag instead.

Encountering an ENOENT error when running npm dev in Laravel 5.8

When I attempt to update the bootstrap and jquery in a Laravel 5.8 web application by running "npm run dev," I encounter the following repetitive error message... (node:4758) UnhandledPromiseRejectionWarning: Error: ENOENT: Unable to retrieve file or direc ...

Ever since updating from Laravel 5.7 to Laravel 5.8, encountering issues with the functionality of the personalized blade directive

I have encountered an issue with my custom directives for Ziggyroutes in Laravel. These directives were functioning properly in Laravel 5.7, but after upgrading to Laravel 5.8, they no longer work as expected. Instead of executing the directive, it simply ...

What is the best way to create a unique collection that highlights the most frequently occurring data points?

I have a table setup as shown below: https://i.stack.imgur.com/erxnt.png This particular table is designated as favourite_products and holds product ids that users have marked as favorites. My goal is to retrieve a list of the most frequently favorited ...

Laravel route does not receive a parameter sent via Ajax

I am currently using Laravel 5.8 and implementing a discount code system on my website. To achieve this, I attempted to send data via Ajax in the following manner: $.ajax({ type: 'POST', url: baseurl + 'discount/register', ...

Retrieve the user ID during the login process using LoginController.php in Laravel

After a user logs in, I need to retrieve their user ID immediately. I have attempted to do this using a request but encountered an error message that says: "Too few arguments to function AppHttpControllersAuthLoginController::redirectTo(), 0 passed ...

Is there a way to rectify the issue where Auth::check() continues to return false despite being logged in?

I have a web app project where users can save their favorite websites. However, I am facing an issue where Auth::check() always returns false even when I am logged in as a user and trying to retrieve data through the API. I have one WebsiteController set ...

How to Disable Model Save Functionality in Laravel 5.8 When Running Tests

I am currently testing a service that alters the state of a model. Below is the model I am working with: <?php namespace AppModels; use IlluminateDatabaseEloquentModel; class Color extends Model { protected $table = 'color'; protected $c ...

Display the most recent product category exclusively in Laravel 5.8

Within my database, I have three entities: products, categories, and product_category. A single product can be associated with multiple categories, and some of these categories may have a parent category. The desired information on how these entities are r ...

Guide to showing pictures from the public directory in Laravel version 5.8?

I have been attempting to showcase an image that is stored in the storage/app/uploads directory. Even after running the "php artisan storage:link" command successfully, the image is still not appearing. Upon inspecting the code in the browser, I can see ...

Obtain the name of a person instead of their identification in a one-to-one

I have two tables in my database - one is a "make" table and the other is a "post" table. The "make" table stores make names using columns like make_code and make_name. The "post" table has a column called make, which saves the make in the form of make_cod ...

Building Secure Authentication in Laravel 5.8 Using a Custom Table with Additional Fields

In the process of developing my Laravel 5.8 application, I encountered an issue with integrating custom fields into the authentication process for users registered in a SQL table from a pre-existing app. Despite correctly setting up the SQL connection in t ...

webpack-cli Configuration object is not valid

I have laravel 5.8 set up on my system and I am looking to integrate vue into it. I attempted to execute the following commands. I am using ubuntu, with node version 10.19. 1. npm install 2. npm run watch The first command executed successfully but displa ...