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
3 answers

Laravel 5.7 Reformat Date Time Stamp in View

By default when Laravel creates a post it stores the date and time stamp as: 2019-01-31 23:32:06 How can I show it in the view as - Jan 31st, 2018 11:32pm?
user9465677
  • 437
  • 4
  • 21
-1
votes
4 answers

Cannot make a primary key and foreing key at the same time with migration Laravel

I was trying to make a foreign key in a primary key at one migration. This is for Laravel 5.7. I have tried different ways to try to achieve my objective. This is my final code. Schema::create('teachers', function (Blueprint $table) { …
-1
votes
1 answer

Why does Laravel Combine query is not working?

My Channels Model is : class Channels extends Model { protected $fillable = ['title','slug']; public function Discussion() { return $this->hasMany('App\Discussion'); } } Channel Model is: class…
Osman Rafi
  • 938
  • 1
  • 16
  • 37
-1
votes
1 answer

Laravel 5.7 routing pass to controller just the second parameter

I have the following route Route::get('/{slug}/pd/{public_id}', 'Products\ShowController'); And I want to pass to ShowController just the public_id parameter. class ShowController extends Controller { public function…
-1
votes
1 answer

How to count Unique Website Visitor by Laravel 5.7?

Recently I'm developing a Restaurant Website Dashboard. They want to track the total unique number of visitors to their website. Now how can I solve this problem...? Can anyone please describe how to count the Visitor Number through Laravel...?
NIKHIL KURMI
  • 113
  • 2
  • 11
-1
votes
2 answers

Laravel make:auth custom folder

I'm new to using laravel 5.7. I made a make:auth and to authenticate I need use http://localhost:8000/login and when I login I get redirected to http://localhost:8000/home, but I want login on http://localhost:8000/admin-panel/login and when I auth,…
c4rlosls
  • 65
  • 9
-1
votes
1 answer

Error = Method Illuminate\Http\UploadedFile::save does not exist

I can't add images to the database. I am always getting this error. $this->validate($request, [ 'imageName' => 'required', 'imagePath' => 'required', ]); $image->productId = $request->input('productId'); …
Mustafa BATMAZ
  • 11
  • 1
  • 1
  • 2
-1
votes
3 answers

I am getting error when i am sending mail in laravel

I am getting error when i am sending mail at gmail id,I am using laravel 5.7, I am getting this errot Call to undefined function App\Http\Controllers\send() and my controller code is : public function postEmail(Request $r) { $data=[ …
Ramson
  • 1
  • 4
-1
votes
1 answer

Laravel Compare Multiple Many-to-many Relationships

I am using Laravel Eloquent to retrieve data. This is what my database looks like. I have the user's preference in one pivot table and the agency's preference in the other: Can anyone help me come up with an Eloquent command that will return all…
-1
votes
1 answer

Laravel 5.7 checking code in tinker, but i have a problem while getting values from model class?

my question is totaly different from that question, in that question they are telling about php versions and all, that question didn't solved my issue, thats why I haved asked my own question. @Álvaro González I have created 4 models with this…
Akhtar Munir
  • 1,691
  • 3
  • 11
  • 28
-1
votes
1 answer

How Can Show the encrypted password in my view page as decrypted value?

I have generated multiple numbers of password for students. And I have kept those in database as studentPassword. Now want to view the encrypted password list in my view page table as decrypted value. Suppose, in the database table there is a…
Mousumi
  • 31
  • 2
  • 6
-1
votes
2 answers

View [layout.layout] not found on hosting

I tired to push my Laravel app to hosting. Soo I changed all content in .env for DB and now I get this error: ErrorException (E_ERROR) View [layout.layout] not found. (View: /home/ramchca/ftp/resources/views/Pages/index.blade.php) Previous…
-1
votes
2 answers

Uncaught TypeError: $(...).modal

why can't view modal ? and error like this it should be like this
Lia nur fadilah
  • 57
  • 2
  • 13
-1
votes
3 answers

Getting Total Sum Of All Values But Why It's Showing Same Total In All Dynamic Items

I'm using Laravel 5.7 & VueJs 2.5.* ... I have 12 input fields of Taxes_Break_Up, i need to sum all of them and show in Total_Tax_BreakUp field. I have TicketInvoice and a TicketInvoice has many TicketInvoiceItems, in my TicketInvoiceItems i have…
-1
votes
1 answer

How to create custom logout functionlity in laravel

How to create logout functionlity in laravel. I want it to redirect to some other page instead of home page which is default in laravel. Thanks in advance.
user10359660