Skip to content
Advertisement

Tag: laravel-5

Laravel: Layouts.master not found

I built the demosite in Laravel, but I got the following error: ErrorException in FileViewFinder.php line 137: View [layouts.master] not found.(View: /var/www/html/project/laravel/laravel/resources/views/page.blade.php) The master.blade.php is next to the page.blade.php, both are in resources/views master.blade.php page.blade.php What goes wrong? I working from this tutorial. Answer Try They are both at the views root you said. Or create a directory called layouts

Merge two laravel projects [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question I have two admin panels created on laravel 5.2 project. They both are of different purpose. I mean to say

Laravel custom db driver

i know there is a nice way of defining connections via app/config/database.php . But i don’t think there is a driver for me available. Imagine my db is read from file, like a txt. (Yeah! that’s my client db, sort of). So in that file, before I i need a real driver! Currently it uses a txt base db but

What is Facades used in Laravel?

I’m confused by the Facades offered by Laravel. The Laravel documentation states: Facades provide a “static” interface to classes that are available in the application’s service container. Laravel ships with many facades which provide access to almost all of Laravel’s features. Laravel facades serve as “static proxies” to underlying classes in the service container, providing the benefit of a terse,

Laravel 5: php artisan migrate:refresh

I am working on a laravel project and each time I change my table (add or remove column) and run php artisan migrate:refresh. I get this error: [SymfonyComponentDebugExceptionFatalErrorException] Can’t use method return value in write context Solution tried: run composer dump-autoload (Fails) Drop table in database, delete the migration file and restart again (works) Previous migration file: Changed migration file:

How to save uploaded image to Storage in laravel?

I am using Image intervention to save an image to the storage folder. I have the code below and it seems to just save a file name with a blank image. I think I need a way for the file contents to be written to the folder but struggling for the snippet. Answer You need to do

Laravel – unsigned with nullable

I am using Laravel 5.3, I want to define a field in table migration as nullable as well as unsigned. As both are index modifier, can I use them in concatenation ? Like: Please also give some reference if there is to these kind of modifications in laravel documentation or somewhere. Please note that I want to define field in

Laravel Carbon Group by Month

Can anyone see what I’m doing wrong? I’m trying to output all the months but group them so they are unique. I’m getting the following back In my database I have five news articles all created_at 05/01/2017 so it’s right that I only get one response but I’m not getting the number of the month back? Answer You can use

Advertisement