All Questions

308
votes
20answers
199513 views

Laravel requires the Mcrypt PHP extension

I am trying to use the migrate function in Laravel 4 on OSX. However, I am getting the following error: Laravel requires the Mcrypt PHP extension. As far as I understand, it's already enabled (see ...
6
votes
7answers
1590 views

How to hide config files from direct access?

I am using Laravel for web app. Uploaded everything on production and found out that some of the files can be directly accessed by url - for example http://domain.com/composer.json How to avoid that...
100
votes
14answers
87071 views

Laravel 5 - Remove public from URL

I know this is a very popular question but I haven't been able to find a working solution for Laravel 5. I've been trying to migrate from Codeigniter for a long time, but this convoluted installation ...
123
votes
3answers
50004 views

Can anyone explain Laravel 5.2 Multi Auth with example

What I have done so far. I am trying to authenticate users and admin form user table and admin table respectively. I am using the User model as provided by laravel out of the box and created exactly s...
236
votes
15answers
96656 views

Best practices for custom helpers on Laravel 5

I would like to create some helpers (functions) to avoid repeating code between some views, in L5 style: view.blade.php <p>Foo Formated text: {{ fooFormatText($text) }}</p> They are ba...
10
votes
2answers
1590 views

Laravel 5.2 Validation Error not appearing in blade

I want to show validation Error in View page while user giving wrong input. It's Ok that it's not saving anything in database while a user giving wrong input. But there is no error message in user vie...
47
votes
14answers
107494 views

How can I remove "public/index.php" in the url generated laravel?

Basically I need to remove index.php or public/index.php from the the generated URL in laravel, commonly path is localhost/public/index.php/someWordForRoute, It should be something like localhost/so...
99
votes
7answers
61702 views

Laravel 5: Display HTML with Blade

I have a string returned to one of my views, like this: $text = '<p><strong>Lorem</strong> ipsum dolor <img src="images/test.jpg"></p>' I'm trying to display it with B...
64
votes
6answers
73249 views

Laravel 5 - How to access image uploaded in storage within View?

I have got user's avatars uploaded in Laravel storage. How can I access them and render them in a view? The server is pointing all requests to /public, so how can I show them if they are in the /stor...
49
votes
11answers
64627 views

File permissions for Laravel 5 (and others)

I'm using Apache Web Server that has the owner set to _www:_www. I never know what is the best practice with file permissions, for example when I create new Laravel 5 project. Laravel 5 requires /sto...

Previous Next