Questions tagged as 'laravel'

3
answers

How to find the base url of Laravel?

I remember that when I used the Codeigniter framework, I could figure out which was the base url of the application, simply calling base_url() . In Laravelle 3, I used URL::base() . But now, in Laravel 5, when I call URL::base(...
asked by 24.08.2016 / 15:40
1
answer

Problem with .htaccess, subdomain

I have a large installation on my site (root), that is, in the public_html folder I have a .htaccess file with: <IfModule mod_deflate.c> <FilesMatch "\.(html|php|txt|xml|js|css)$"> SetOutputFilter DEFLATE </Files...
asked by 21.03.2016 / 13:50
1
answer

System of Log in Data Management System

I am developing a data management system in PHP Laravel 5 . On this system I want to put a Logs System. 1 - Does Laravel have any library that facilitates this system? 2 - If Laravel does not have the best way to do such a system?...
asked by 17.11.2015 / 17:17
1
answer

Laravel - Creating select with Form :: select + Model :: lists

I'm trying to create a select with the following code: My controller looks like this: public function create(){ $marcas = Marca::lists('descricao', 'id')->toArray(); return view('sistema.modelos.create', ['marcas'=>$marcas]);...
asked by 20.07.2016 / 03:09
1
answer

Laravel 4.2 - 405 Method Not Allowed

I have a route that was working normally and stopped working for no apparent reason. It has the following configuration: Route::put('/clientes', 'Clientes@update'); The error I get is: Method Not Allowed The requested method PUT is not al...
asked by 04.11.2015 / 10:20
1
answer

Laravel - How to change default folder for new projects

New projects created using the Laravel installer go to C:\Users\MyUser\ . For example if I use the command laravel new MyApp Laravel will be installed inside the C:\Users\MyUser\MyApp directory. How do I change this pat...
asked by 20.02.2016 / 22:39
1
answer

Is there any way to run Laravel on the command line in interactive mode?

In PHP, I know you can run it interactively on the command line, which is through the command php -a . Better still be using the library psysh . But when it comes to not just running simple tests, but running an application inte...
asked by 01.03.2016 / 13:26
1
answer

Require once / Include in Laravel

I am trying to include a file in a page on a site made in Laravel. The file and the page are on different servers. How can I do this? I tried with include and gave the following error: include(): http:// wrapper is disabled in the server c...
asked by 26.02.2016 / 14:45
1
answer

How do I define routes in Laravel that work only in the development environment?

I would like to know how I can define routes in Laravel that work only in the development environment. I think this can be useful to make it easier to debugs . I want to be able to separate some routes to use only when in development...
asked by 02.09.2015 / 17:27
1
answer

Why does not creating the model create the migration?

I'm starting on Laravel 5 and then this tutorial >. When creating model php artisan make:model Tarefa It does not create the migration in database/migrations/ as it would be supposed, does anyone know the reason?     
asked by 04.09.2015 / 16:12