Skip to main content

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
0 votes
1 answer
48 views

how to store form with 1500 plus fields using jquey ajax in laravel

How can I store a form with more than 1500 fields in Laravel 5.8? Controller: public function store(Request $request) { dd($request->all()); } View file: @extends('main') @section('content') ...
Bhagvat Joshi's user avatar
-2 votes
1 answer
168 views

How to solve versions problem in laravel? [closed]

I have an old Laravel project with version 5.8, and I've downloaded PHP with version 7.1.33, but these errors continue to appear I can't do anything with these errors! I've tried to create a new ...
Basma Almajayda's user avatar
0 votes
0 answers
78 views

laravel 5.8 verification email contains ID how to obfuscated it and verify it after click

I have a project that is made using Laravel 5.8. I'm so surprised that Laravel verification link contains the raw id of the user given that this framework have a great decent amount of security ! Can ...
Neokyuubi's user avatar
0 votes
2 answers
71 views

Laravel belongsToMany select all specified ids

Relation public function groups() { return $this->belongsToMany('App\Models\ItemGroup','item_to_group','item_id','item_group_id'); } ** How to select all Items that have ...
EgoPrimary's user avatar
0 votes
2 answers
728 views

How I can hide some parameters from request body once an error is reported into sentry?

In a laravel php application I use the sentry to keep error info for example this controller: class MuController { private function someMethodThatThrowsException() { throw new \Exception('Told ...
Dimitrios Desyllas's user avatar
0 votes
1 answer
2k views

Why doesn't composer recognize psr/simple-cache/src

enter image description here I have to use composer version 1 in the Laravel Project (5.8 version). If I run the composer install command, In InstalledVersions.php line 159: Package psr/simple-cache ...
Yeawon Kim's user avatar
-1 votes
1 answer
66 views

How to make a field required if it appearing on a form

I have a Laravel 5.8 project and on a Blade I added this: @if(empty($user->usr_name)) <div class="row"> <div class="col-md-12"> <div ...
Peter Amo's user avatar
  • 171
0 votes
2 answers
100 views

How to add if..else conditional statements to the db query builder of Laravel

I have a export method in Laravel 5.8 for exporting some results from oders table: public static function getAllData() { $records = DB::table('orders as t1') ->leftjoin('...
Peter Amo's user avatar
  • 171
1 vote
2 answers
49 views

How to make two columns of a table requiring to be unique at user request

I have tried validating the user request like this: $data = $request->validate([ 'fname' => 'nullable', 'lname' => 'nullable', 'gender' => 'required', 'mobile' => '...
Peter Amo's user avatar
  • 171
1 vote
1 answer
51 views

LaravelExcel Maatwebsite does not export data

I'm working with Laravel 5.8 and I have added LaravelExcel Maatwebsite to export some data from the DB into Excel file. So I tried adding this method to the Model: public static function getAllData() {...
Peter Amo's user avatar
  • 171
1 vote
4 answers
258 views

How to subtract two columns from each other when using case expression

I want to export some results in Excel from the Model method, so I added this, public static function getAllData() { $records = DB::table('orders as t1') ->leftjoin('payments as t2',...
Peter Amo's user avatar
  • 171
0 votes
2 answers
44 views

How to add LIKE to this Eloquent query

I'm working with Laravel 5.8 and I have this method: public function getCourseDefinition() { $course_definition = DB::table('getCourseDefinition'); if (request()->has('...
Peter Amo's user avatar
  • 171
1 vote
1 answer
24 views

Retrieving data based on One To Many Relationship

I have two tabled called categories and resources table. Basically each resource has a category and the category id is saved on a column called resource_category_id in resources table. So in order to ...
Peter Amo's user avatar
  • 171
1 vote
1 answer
286 views

How to fix encoding of generated pdf using Dompdf

I'm using Laravel 9 and Dompdf to generate some pdf files. And the blade that I'm calling for the pdf files, contains persian/farsi/arabic character languages and therefore the final result will be ...
Peter Amo's user avatar
  • 171
0 votes
1 answer
36 views

How to check that entered value of one these form inputs are not repeated at the other input

I have added this Controller method and I need to make sure that the entered number for one of the inputs (banner_one_priority, banner_two_priority, banner_three_priority, banner_four_priority, ...
Peter Amo's user avatar
  • 171

15 30 50 per page
1
2 3 4 5
123