Questions tagged [laravel-5.8]

Laravel 5.8 is the previous stable version of the open-source PHP web framework created by Taylor Otwell. It was released on February 26, 2019. Use it in addition to the [laravel-5] tag if your question is specific to Laravel 5.8. Use the [laravel] tag for general Laravel related questions.

Laravel 5.8 is the previous stable version of the open-source PHP web framework created by Taylor Otwell. It was released on February 26, 2019.

What is new:

  • Eloquent HasOneThrough Relationship
  • Auto-Discovery Of Model Policies
  • PSR-16 Cache Compliance
  • Multiple Broadcast Authentication Guards
  • Token Guard Token Hashing
  • Improved Email Validation
  • Default Scheduler Timezone
  • Intermediate Table / Pivot Model Events
  • Artisan Call Improvements
  • Mock / Spy Testing Helper Methods
  • Eloquent Resource Key Preservation
  • Higher Order orWhere Eloquent Method
  • Artisan Serve Improvements
  • Blade File Mapping
  • DynamoDB Cache / Session Drivers
  • Carbon 2.0 Support
  • Pheanstalk 4.0 Support

Resources:

1845 questions
3
votes
2 answers

How to hide website information on Wappalyzer

I have a website written in Laravel 5.8 and when I search my website info on wappalyzer.com website, I can see all the entire information of my website there. And this is not good due to OWASP security test. So I'm looking for a way to hide the…
demovow182
  • 87
  • 5
3
votes
3 answers

How to set a One To Many relationship in ONE model between different types

I have a table named categories and here is it's structure: id bigint(20) AUTO_INCREMENT name varchar(255) description varchar(255) short_name varchar(255) picture varchar(255) …
Pouya
  • 117
  • 1
  • 14
3
votes
4 answers

How to create a correct ManyToMany relationship between a user and a product in Laravel

I'm working on an Online Store project with Laravel 5.8 and in this project, I wanted to add "Add to favourites" ability for users to add a product to their favourite list. So I created a Model like this: class FavouriteProduct extends Model { …
3
votes
1 answer

How to properly run a query that needs a lot of Processing without Getting Error

I am working on an Online E-Learning website with Laravel 5.8 and I need to run a query for updating exam results of users that have been participated in the exam. Here is the Controller method for updating exam scores: public function…
Pouya
  • 117
  • 1
  • 14
3
votes
3 answers

Laravel 5.8: Trying to get property 'created_at' of non-object

I'm using Laravel 5.8 to develop my project and in this project, I have a OneToMany relationship between Member Model & Student Model like this: Student.php: public function member() { return $this->belongsTo(Student::class,…
user9277271
3
votes
0 answers

Laravel dompdf table rowspan on page break not build correctly

im creating export pdf using tables and rowspans, everything look just like what i want. but on page break it show like this : exported pdf the table rowspan is not doing right any solution for this problem? thanks
muflih karim
  • 33
  • 1
  • 3
3
votes
2 answers

get start day of week and end day fullCalendar

I´m traying to get actual week with fullCalendar plugin in laravel 5.8. I need get it, to send this date to controller and to do a query with this date. In my script.js i have a listener click but change my view to week and in this view in title put…
scorpions78
  • 553
  • 4
  • 17
3
votes
1 answer

Laravel 5.8 route for controller inside module directory

I would like to have controllers in separate directories according modules which belongs to. For example I would like to make structure Controllers/Auth/GithubLoginController.php I have correct namespace for controller App\Http\Controllers\Auth I…
Čamo
  • 3,863
  • 13
  • 62
  • 114
3
votes
2 answers

Integrity constraint violation: 1052 Column 'updated_at' in field list is ambiguous

Content of App\User Model file:-
Q8root
  • 1,243
  • 3
  • 25
  • 48
3
votes
1 answer

Convert laravel morph collection to model collection?

I have 3 models: Post, Like, Trending The like and trending models are polymorphs, both are: public function likeable() { return $this->morphTo(); } public function trendingable() { return $this->morphTo(); } When I…
Emmanuel-Ab
  • 321
  • 2
  • 15
3
votes
3 answers

Illuminate \ Http \ Exceptions \ PostTooLargeException No message laravel 5.8

I have post section in my application . I want to add video on my post while it was uploading the video this error will occur Tips: I have modified php.ini but still having this error how to solve this error i appreciate any suggestion please…
Andria
  • 141
  • 1
  • 9
3
votes
1 answer

Laravel 5.8 - How to give permission to users to read,create,update,delete?

How to define permission in controller,to access the function For example, USER -> Joe can use the function read create update delete ,but USER -> dog can use the function only read. In which table permission can increase continuously, and define…