I'm trying to load a view into a layout , below my controller below:
class IndexController extends BaseController {
protected $layout = 'admin.layouts.default';
public function index()
{
$this->layout->$this->l...
I am currently developing a project and have noticed that my controllers are responsible for more than one activity.
Thinking about it, I remembered the Laravel Brazil Community Hangout on SOLID.
The problem is that I do not know the best...
I have two Apaches installed for two versions of PHP (5 and 7), on port 80 and 81 respectively.
I would like to create virtualhost for port 81 of apache
The host file has this line:
Host
127.0.0.1 projeto.dev
127.0.0.1...
After submitting the form I return to the page in question with two methods, redirect() and back() . In case I'm using the bootstrap tabs and would like to get back with the anchor of the id, eg:
return redirect()->back(); /...
I need to modify my laravel application so that each user can see their particular content, since each user will have their own information. I already configured the default authentication using make auth and it works fine.
I am manipulating a MySQL database with Laravel 4. I want to know if there is any way to do a rollback on just one of the database tables. For example, my migration included the x, y, and z tables. I want to do a rollback only on the table and....
I'm trying to make a select button on the blade with @foreach to get the list of all MySql databases. Only @foreach works, I can get the values, but I can not put the bases inside select . It is giving error:
htm...
I realize that in Laravel 4 Framework , when we have a relationship, instead of using JOIN of Mysql in the source code of Eloquent , it uses a select.
For example. I have these two Models.
class Usuario extends Elo...