laravel-5 Questions
3
Today I noticed something disturbing while inspecting session files in storage/framework/sessions folder created by Laravel 5.
Here is what happened:
I logged in as user A
I navigated to a page...
Capelin asked 9/6, 2015 at 9:53
2
Solved
I want to add custom validation for one field in laravel nova resource file.
I have one field in db which is service_id in the service table and I have nova resource file for the same table. On cr...
Liverwort asked 19/3, 2019 at 16:59
3
Solved
I'm looking into Laravel Echo (With socket.io as connector)
But I can't find out how to bind a callback when user/visitor succeed or not connecting to the socket (Not channel), but generally if co...
Bader asked 22/9, 2017 at 8:42
10
Solved
I am trying to show my markdown email on view, but there's something wrong on my mail view, it shows like
ErrorException in FileViewFinder.php line 112:
No hint path defined for [mail]. (View: /opt...
1
How can I create partial indexes using Laravel 5.2's Schema Builder?
For instance, instead of the query create index alternate_listing_not_null on listings(alternate_listings_id) where alternate_l...
Jilolo asked 15/6, 2016 at 19:53
6
Solved
It's giving me this error when I run the test:
undefined variable $faker.
This is the WithFaker file.
https://github.com/laravel/framework/blob/5.5/src/Illuminate/Foundation/Testing/WithFake...
9
Solved
I want to have a custom 500 error page. This can be done simply by creating a view in errors/500.blade.php.
This is fine for production mode, but I no longer get the default exception/ debug page...
Sthilaire asked 6/3, 2017 at 12:32
5
Solved
I have a complex Artisan Command that I wanna call in my Controller also. That works. Except that it return an Exitcode instead of output.
use Symfony\Component\Console\Output\BufferedOutput; # on...
3
Solved
According to the Laravel documentation Request is acquired via dependency injection. For a controller this is fine, but how do we access Request object outside a controller, for example in a view
2
Solved
I'm starting to read about Carbon and can't seem to figure out how to create a carbon date.
In the docs is says you can;
Carbon::createFromDate($year, $month, $day, $tz);
Carbon::createFromTim...
Cyrus asked 24/1, 2016 at 1:12
5
Solved
I need to use the "Maintenance mode" using the artisan command php artisan down, but just for some specific urls...
In my case, I want that all urls that starts with /admin continue worki...
5
Solved
I'm experimenting with Deployer to deploy Laravel application into shared hosting (using laravel recipe) from my local ~/Code/project_foo.
The point is that when I'm connected to my shared hosting...
Chanellechaney asked 1/3, 2018 at 12:15
9
I'm trying to link in my package to a view also in the same package.
This is the file structure:
/report/src
/report/src/ReportServiceProvider.php
/report/src/views/test.blade.php
/report/src/Some...
5
Solved
/** Redirect 404's to home
*****************************************/
App::missing(function($exception)
{
// return Response::view('errors.missing', array(), 404);
return Redirect::to('/');
});
...
Endstopped asked 6/4, 2015 at 20:47
6
Solved
I am trying to recreate the database before each test in some PHPUnit test cases. I am using Laravel 5.3. Here is TestCase:
class CourseTypesTest extends TestCase
{
public function setUp()
{
pa...
Wald asked 22/1, 2017 at 12:14
7
I'm developing a REST service with Laravel to consume it from a mobile app. It works properly on local, but not on hosting. After several tries, I developed a basic example to test the POST method,...
7
Solved
I'm trying to import excel file (.xlsx) using maatwebsite 3.0. How to fix This error
Call to undefined method Maatwebsite\Excel\Excel::load()
My controller
public function importsave(Request...
Meliamelic asked 25/3, 2018 at 6:20
5
Solved
I am changing the timezone into Asia/Singapore at config/app.php, but when I try to do a date("Y-m-d H:i:s"); the result is still in UTC.
Is there anything in Laravel that overrides that timezone ...
9
Solved
My code in on production and I ran
php artisan config:clear
After that, my code was not running. The index pages and all other pages went white screen and gave 500 internal server error in fire...
12
I have followed https://github.com/barryvdh/laravel-cors to enable CORS on my application.
When I refresh my page (REST endpoint), I get the following message :-
Class cors does not exist
I ran...
3
Solved
Usually I save temporary data/array inside session while working with Website (Non API).
Today I want to do the same thing (save temporary data/array inside session) with Laravel API.
So here is ...
Marra asked 19/12, 2017 at 1:43
7
Solved
I upload all user files to directory:
/resources/app/uploads/
I try to get image by full path:
http://localhost/resources/app/uploads/e00bdaa62492a320b78b203e2980169c.jpg
But I get error:
No...
8
I have viewed all the topics available for this question , but not getting any acurate answer...
anybody got clear idea to backup the current database in .sql file and download it ?
7
Solved
I'm writing code in Laravel 5 to periodically backup a MySQL database. My code thus far looks like this:
$filename = 'database_backup_'.date('G_a_m_d_y').'.sql';
$destination = storage_path() . ...
Infold asked 9/4, 2015 at 0:22
6
Solved
Laravel 5.8
I am new to this whole pusher functionality and I've been following this tutorial and trying it out,
Create Web Notifications Using Laravel and Pusher Channels.
I've followed it st...
© 2022 - 2025 — McMap. All rights reserved.