Questions tagged as 'laravel'

1
answer

Uncaught ReferenceError: CKEDITOR is not defined

I'm using CKEditor so the user can fill in some text. On the Home page of the site I was looking at DevTools from Chrome and found the error.    Uncaught ReferenceError: CKEDITOR is not defined - jquery.js: 5     
asked by 09.09.2014 / 18:12
2
answers

"Controller method not found." in a method that exists

I'm starting with the laravel and on a project that already was in progress. I'm trying to access the url link and is always returning.    Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException   Controller method not found...
asked by 04.09.2014 / 14:29
2
answers

Protecting routes in Laravel 4

After logging the user into the system I theoretically would have to have some protected routes, how do I do this? In my case it is returning error. See: routes.php Route::group(['before' => 'auth'],function(){ Route::controller('res...
asked by 09.06.2014 / 20:53
2
answers

Laravel - Accessing directory absolute path for download

I created a directory within / public called / uploads / pdf. In this directory I save PDF files that I need to download. I created an AJAX request for this which calls an application controller for this, however, via AJAX it does not work. I...
asked by 07.06.2014 / 19:16
2
answers

Form post does not work in Laravel 4

I'm trying to send data from a form via the POST method, but it's not going to work at all. Follow my code // routes.php Route::any('/', function() { echo Request::getMethod(); // Aqui esta sempre retornando GET return View::make(...
asked by 17.10.2014 / 04:18
1
answer

How to change the minimum size required for the password

I'm trying to change the minimum size for the 'password' field but I can not find it. Does anyone know what minimum amount Laravel requires for this field and if it is possible to change? If so, where can I make this change?     
asked by 09.04.2014 / 16:49
2
answers

Laravel 4 (Eloquent) Error deleting records

Hello, in this code below I make a delete in the database of the selected records in a list of chekboxes. I have an array of Ids that is mounted as follows: Array ( [0] => 810 [1] => 811 ) On top of this array I make a fore...
asked by 09.04.2014 / 21:45
2
answers

How to bring Model by IDS and order at the same time

I have the ids returned from an immense query to bring the posts with a searched term ... It is already working to bring the posts through the Model by the selected IDS but it always brings by ID and what I need to order by date ... In the huge...
asked by 11.07.2014 / 22:52
1
answer

Laravel Controller add content?

I'm newbie and would like some help, I have a controller that performs a query. Controller $user = $this->user->find('1'); view('index', compact('user')); View @forelse ($user as $u) <h1>{{ $u->n...
asked by 03.01.2019 / 07:36
0
answers

Result of relationship with self-relationship?

Using the self-relationship with you the following result.: Collection {#335 ▼ #items: array:7 [▼ 0 => Post {#266 ▶} 1 => Post {#267 ▼ #fillable: array:3 [▶] +incrementing: false #connection: "sqlite" #t...
asked by 05.01.2019 / 01:38