Questions tagged [laravel-5.5]

Laravel 5.5 is a previous version, but the current LTS version, of the open-source PHP web framework created by Taylor Otwell. It was released on August 30, 2017. Use it in addition to the laravel-5 tag if your question is specific to Laravel 5.5. Use the laravel tag for general laravel related questions.

Laravel 5.5 is a previous version, but current LTS version, of Laravel 5. It was released on August 30,2017.

What is new:

  • New Whoops integration
  • Streamlined Request Validation
  • Fresh Migrations
  • Frontend Presets
  • Automatic Package Discovery
  • Silky Smooth Custom Validation Rules
  • Collection Dumping
  • Model Factory Generation
  • Custom Blade "If" Directives
  • Auto-Registering Artisan Commands
  • Higher Order Tap
  • Optional Objects
  • New API Resources

Resources:

2496 questions
0
votes
2 answers

Issue in dynamic model loading in Laravel 5.6

I am trying to load models dynamically in my controller based on route type. But when I run program I get a message saying "class not found". Here is my code and a link of stackoverflow which I used to fix my issue. Code: $model =…
aishazafar
  • 1,024
  • 3
  • 15
  • 35
0
votes
2 answers

Retrieve parameters from custom validation object

I have basic custom validation rule. In public function passes($attribute, $value) { foreach ($parameters as $key) { if ( ! empty(Input::get($key)) ) { return false; } } return true; } I have my…
Epsilon47
  • 768
  • 1
  • 13
  • 28
0
votes
1 answer

GroupBy results from a HasManyThrough a ManyToMany relationship in Laravel 5.5

I have a complex relationship like a ManyToMany relationship between Category and Products and a Product can have many Inventory listings from different Shops(user). A Shop can have multiple listing of the same Product as a…
Munna Khan
  • 1,902
  • 1
  • 18
  • 24
0
votes
0 answers

Laravel same route url but different route name in different domain not access why?

I am working in one of my projects.In project i have different domain like (abc.xyz.cc , pqr.xyz.cc, mno.xyz.cc).and in domain we assign different route file in RouteServiceProvider. Code protected function mapAdminRoutes() { …
Jinal Somaiya
  • 1,931
  • 15
  • 29
0
votes
1 answer

How can write regex validate for zipcode in laravel validation?

I have a registration form. I need to validate zipcode. Validation rules must be integer, Max length not greater than 7. I had tried validation but it validate zip must be 5. But some countries has 6 or 4 zipcode. Any help would be…
Sarath TS
  • 2,432
  • 6
  • 32
  • 79
0
votes
1 answer

Laravel Database Join sql or Array join

I have two tables: outgo_table 1.1 daily_money_column 1.2 created_at_column income_table** 2.1 daily_money_column 2.2 created_at_column What I want to select? I want to select sum of daily_money_column using created_at_column from two…
Raha Raha
  • 16
  • 2
0
votes
2 answers

How can I authenticate user for Laravel feature testing?

I am trying to test if authenticated manager will redirect to dashboard. (When the manager is already authenticated and goes to login page, he is redirected to dashboard) public function testIfBackendIsLoggingAuthenticatedUser() { $manager =…
Thelambofgoat
  • 609
  • 1
  • 11
  • 24
0
votes
1 answer

Insert data into two columns of a table in Laravel Controller using sql

I have been trying to insert data using query into two columns of a table but there's something missing that its not sending data in the other column named booking_code. It is inserting the booking_id into the table but not booking_code. Here is…
Shoaib Akhtar
  • 85
  • 1
  • 1
  • 9
0
votes
0 answers

Converting Braintree from Class to instance interface in Laravel, where does code go?

So I have an interface developed and working with Braintree but they have since updated their api to go from Class level to an instance style interface. They gave the following to show the old and the new style of code. The problem is the old code…
Wayne Fulcher
  • 741
  • 1
  • 11
  • 21
0
votes
2 answers

The page has expired due to inactivity

What's up guys! I developed a system locally and it worked perfectly. When I put the system on the web server it started to give this error. The page has expired due to inactivity. I would not like to put the routes as an exception from csrf. One…
0
votes
1 answer

How to COUNT Column and use WHERE condition by each ID(user) with Laravel Fluent?

i'm newbie to laravel. I want to count the number with where condition in column 'ket'. In this code, i've successfully applied to normal user (code 1), i want to applied the code 1 $total_tdkmsk $total_msk $total_telat into code 2. So this is what…
Pratama
  • 35
  • 1
  • 10
0
votes
1 answer

Alert on reCAPTCHA console

I added the reCAPTCHA plugin on my website but I see this alert on admin console. I'm using Laravel 5.5 for my website and I'm using the following plugin to handle reCAPTCHA module: https://github.com/thinhbuzz/laravel-google-captcha What I need to…
Andrea
  • 31
  • 1
  • 4
0
votes
0 answers

I want to combine both result into one in Laravel?

I just tried to following code in this fetch form have some result and fetchformans have another result but i want both into one result. I have tried many times but not get both result into one. $fetchform =…
0
votes
1 answer

Updating shopping cart Laravel

I'm having a problem trying to update the total quantity of items which are in my shopping cart. The problem that I'm having is when I update the quantity of an item, it takes that quantity as the total quantity. How can I sum the quantities of my…
Daniel Hernandez
  • 195
  • 6
  • 17
0
votes
0 answers

connecting to database SQLSTATE[HY000] [1045] on new server

I have recently changed server and uploaded my database to the server, for the live website i made no changes to my env and everything works the same. But in my php storm development i have had to change the ip(db host) and despite the username and…
detinu20
  • 299
  • 3
  • 20
1 2 3
99
100