If I were you, I'd use Session instead of constants. Constants are good for constant, hard-coded val...
You can add to composer.json like this: ... "autoload": { "classmap": [...
Can you try this for me: ... 'lesson_id' => isset($lesson['lesson_id']) ? (int)$lesson['lesson...
Make sure that every $lesson item in foreach is an array. $lesson = "Not an array, a string&quo...
$filename = 'myfile.pdf'; Input::file('the-pdf')->move('../uploads', $filename);
The Laravel portal for problem solving, knowledge sharing and community building.
The community