Questions tagged [laravel-5.7]

Laravel 5.7 represents the pinnacle of innovation in the realm of open-source PHP web frameworks, meticulously crafted by the visionary Taylor Otwell. Unveiled to the world on September 4th, 2018, this version continues to astonish and empower developers worldwide. Whenever your inquiry delves into Laravel 5.7 intricacies, feel free to embrace it alongside the [laravel-5] tag. For more generalized queries pertaining to the remarkable Laravel ecosystem, simply deploy the [laravel] tag for illumination.

Fix Vue by deleting "public" from the file path

After removing the "public" from the URL path following this guide Laravel 5 – Remove Public from URL, I have encountered an issue with Vue scripts not working properly. Interestingly, if you add "public" back to the path, the script works fine (http:// ...

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

Unable to access an SQLite database using a relative path within the ENV file of a Laravel project

I have recently completed a vanilla Laravel-React project. You can find the project reference in the following hyperlink: https://github.com/napolev/laravel-react-vanilla In this particular project, I decided to use SQLite instead of MySQL. However, I a ...

Experiencing npm install or update errors while upgrading to Laravel 5.7?

Upon updating from laravel 5.6 to 5.7, attempting to run npm install or npm update results in the following error: npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f795859880849285849b9e8483b7c5d9c6c6d9c4"> ...

Laravel Mix fails to recognize VueJs integration in Laravel

Having an issue setting up VueJs with laravel 5.7 and mix where it keeps saying VueJs is not detected. I've already executed the npm install command. Below is my welcome view: <!doctype html> <html lang="{{ str_replace('_', '-', app()->getLoca ...

Minimizing nested loops in the response of a multi-dimensional array

When using the Facebook Batch request API, I receive a response. Based on my logic, this response is the best one that I can get, and I want to access the root elements "source_id" and "copied_id" inside the [BODY]. My goal is to access them with minimal l ...

I Tried Adding Up All the Numbers, but It Doesn't Seem to Work for Every Dynamic Total Field

In my project, I am utilizing Laravel 5.7 and VueJs 2.5.*. The issue I am facing is that when I input values, the Total field calculates correctly. However, when I dynamically add rows for items, the calculation only works for the first row and not for the ...

Can someone assist me with indicating the starting page to display in the controller?

My pagination setup appears as follows: //Controller (UserController) public show(){ $users = DB::table('user')->paginate(15); return view('user'); } public process(Request $request){ //perform update return $this ...

Error message "Page Not Found" occurs when attempting to pass variables through the delete route in Laravel

I am currently working on implementing a delete feature. Once a user clicks on the delete icon of a specific element, that particular element should be removed from the database. Below is the code snippet for the view file: @if(Auth::user()->id == $ ...

The method roles in the trait has not been utilized due to conflicts with other methods within the AppUser class

Within my code, I implemented the ZizacoEntrust package for authentication and followed an ACL tutorial step by step. However, when attempting to run the code, I encountered an error message displayed in this image: Error Message: "Trait method roles ha ...