Questions tagged [laravel-5.7]

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

Laravel 5.7 is the previous stable version of Laravel 5. It was released on September 4, 2018.

What is new:

  • Email Verification
  • Guest User Gates / Policies
  • Symfony Dump Server
  • Notification Localization
  • Console Testing
  • URL Generator & Callable Syntax
  • Paginator Links
  • Filesystem Read / Write Streams

Resources:

1390 questions
-1
votes
1 answer

How to make changes to live laravel application without breaking the website?

I have a live laravel project created by an old employee. Is there any way that I can change the contents of that project on server without breaking the website? I want to add some functions to it. Can I test the website after updating the code?
-1
votes
2 answers

Laravel(New user) : user store function to update() and save() . If not exist save() else Update()

public function store(Request $request) { // /*$request->validate([ 'user_id'=>'required', 'time_in'=>'required', 'log_date'=>'required', ]);*/ …
Dayo
  • 11
  • 4
-1
votes
2 answers

how to install git-hub packages in laravel online live server

i want to install git-hub below package: " realrashid/sweet-alert " package in my laravel online running project my project running in cpanel shared host Any help in this ?
user12380208
  • 519
  • 7
  • 26
-1
votes
1 answer

If sub-domain then call sub-domain URL else domain URL call in Laravel 5.7

If I click on the blog button than generate blog.test.local and click on the home button than generate test.local so how can I check domain URL an sub-domain URL. Route::domain('{account}.test.local')->middleware('mymiddle')->group(function ()…
-1
votes
1 answer

Laravel: last migration

i'm using laravel and working on migrations. I am looking for records of the implementation of migrations. How does Laravel find out how far the migrations have run? Because I have checked that each migraine only runs once and will not run in…
-1
votes
1 answer

Use Model::create() to fill specific columns

I just found out that input data to db on laravel could use Model::create() but my question is what if i want to submit specific column? How do i do it? For example table user with name, email, address, and phone. Bug only input the name only…
Martin Christopher
  • 389
  • 1
  • 7
  • 21
-1
votes
1 answer

What are the advantages and disadvantages of voyager laravel framework?

I have a project in laravel 5.7. I am going to use the voyager admin panel template. But I don't know about it. so I have some questions, Is it suitable for a big project? Is it conflicts with my existing project? It is easy to change or modify?
vaibhav kanmeriya
  • 143
  • 1
  • 1
  • 9
-1
votes
2 answers

If my project has five different types of user then I have to create five different authentications?

In Laravel, If my project has five different types of user then I have to create five different authentications?
vaibhav kanmeriya
  • 143
  • 1
  • 1
  • 9
-1
votes
1 answer

How to use PHP echo string in .blade.php file Laravel

I'm trying to use the @php $decoded_json =json_decode(file_get_contents("https://api.coinmarketcap.com/v1/ticker/"), …
-1
votes
1 answer

Model::firstOrNew(['attribute' => $value]) is throwing "Array to string conversion" exception

I am using the Laravel 5.7 PHP framework for this. I am storing client data based on their email address. The client data 'orders' field is of type JSON. Each time the client uses their email to make an order, I want to check if a record exists with…
Jason
  • 11
  • 2
-1
votes
1 answer

how fix this error "Undefined variable: products (0)"

This is my : IndexPageController
hrt
  • 9
  • 5
-1
votes
1 answer

Cleaning up data in a table?

Here is a simplified version of what is happening: The user completes a form. When storing the form, the row id is stored in the session. The user then logs in. The event of a user logging in is caught and the correct row (id taken from session) is…
panthro
  • 22,779
  • 66
  • 183
  • 324
-1
votes
1 answer

Laravel Framework 5.7.27 custom method return blank page

I have this issue of getting a blank page in Laravel and I don't know where I go wrong. Here is my code sample: view maintenance/index.blade.php
Joseph Prosper
  • 72
  • 2
  • 11
-1
votes
1 answer

How to display date-time like 6h ago format in Ionic4

In my database time store like 2019-02-14 06:13:03 how to display in formate of 6h ago or 2 day ago . I am using laravel api. 3d ago or 18h ago
Dinesh Vishwakarma
  • 656
  • 3
  • 13
  • 34
-1
votes
1 answer

How to user several database tables (Laravel native and other app 'legacy') for login in Laravel?

I am very newbee for Laravel (it is important))) My app should use data in existing database (readonly). So I connected two databases to my app, one for Laravel and second one to read data from. I need to make auth for users existed in second…