212,679 questions
3
votes
2
answers
3k
views
Laravel displays an empty line before the Doctype
<!DOCTYPE html>
This is the code.
How can I fix that?
I tested the HTML/CSS/JavaScript before integrating the code with Laravel.
0
votes
2
answers
2k
views
MVC architecture like Laravel
Recently I started learning Laravel and is really good PHP framework. Currently I'm trying to make my own MVC similar how Laravel works.
My logic
We set the routes, then we check if the current ...
3
votes
1
answer
332
views
Cannot detect if User is Logged in when using Paginator (backbone.js)
I am using the Backbone.js Paginator plugin. It does infinite scroll pagination well by defining its own Collection for the models involved in the pagination. If the user is logged in, the PHP backend ...
0
votes
2
answers
3k
views
Strange Unhandled Exception error in Laravel
I am trying to retrieve some values from a table, but got the Unhandled exception: Trying to get property of non-object error when trying to access the results as a property of the object returned by ...
0
votes
1
answer
292
views
Getting user_id stored using PHP's database session
I am using backbone.js to create a view with a button. When the button is clicked, data containing the logged in user's user_id is sent back to the server via AJAX.
Problem: I am using a PHP backend (...
8
votes
2
answers
5k
views
Data passed to view, not accessible in layout - Laravel Controllers
If I have this in my controller
$this->layout->nest('content', 'home.index', $array);
I can only access the data in $array inside the home.index.blade.php template file, and NOT in the layouts....
4
votes
2
answers
698
views
Laravel and Simpletest
I am trying to use Simpletest for unit-testing with Laravel.
I know Laravel comes integrated with PHPUnit support and I know that PHPUnit is the industry standard, but having worked with simpletest ...
49
votes
9
answers
49k
views
Mysql InnoDB engine in Laravel
I am using laravel and laravel migration mechanism. I created tables and seted up foreign keys. But the tables are MyISSAM so no foreign keys are created. Where do I enable / configure this? (to ...
6
votes
2
answers
7k
views
Laravel - using a postgre bytea blob field
I am using PostgreSQL on a Laravel installation. A table has a byte-type field that is being used to store binary data (base64_encoded file contents).
When I use Eloquent to retrieve the table I get ...
4
votes
1
answer
6k
views
htaccess for clean urls not being read by apache?
I'm getting kinda crazy over here because I already wasted two hours getting my clean URLs enabled for the laravel framework.
I'm on a Mac and have a XAMPP setup. The Loadmodule mod_rewrite is ...
28
votes
2
answers
7k
views
Add Laravel Support in Aptana
I wish to add auto-complete with documentation for Laravel in Aptana 3.0
Tough I managed to create auto-complete (just by mapping a few methods in it)
https://github.com/danielboendergaard/laravel-...
0
votes
1
answer
419
views
Laravel Classes and API auto Included
new to Laravel (coming from Java spring), while using
Route::get('/', function()
{
return "Hello World!";
});
Above, we dont need to include any header files(in this and all other configuration ...
3
votes
1
answer
268
views
Session not been set
public function action_adicionar_item()
{
$lista_item_pedido = array();
$x = 0;
if(Session::has('lista_item_pedido'))
{
foreach(Session::get('lista_item_pedido') as $item)
...
5
votes
4
answers
6k
views
Avoiding exceptions when uploading files in laravel
I've got a file upload field (attachment1) in a form that may or may not have a file uploaded in it when I process the form in laravel.
When I'm trying to process the page, this line generates an ...
10
votes
2
answers
12k
views
URL Parameter Passing with Laravel
I want to visit a page like...
http://mysitelocaltion/user_name/user_id
This is just a virtual link, I have used a .htaccess -rewrite rule to internally pass "user_name" and "use_id" as get ...
0
votes
1
answer
814
views
Laravel can't find some files
I'm in the middle of some work and suddenly I get this.
Warning: require(/opt/lampp/htdocs/ERP/laravel/÷5 ication)
[function.require]: failed to open stream: No such file or directory
in /opt/...
42
votes
4
answers
8k
views
Unable to Get Eloquent to Automatically Create Joins
I would like to use built-in ORM functionality in Laravel's Eloquent ORM to automatically join the tournaments and countries tables together when running a query, and return the data set that includes ...
8
votes
1
answer
996
views
Laravel Model Eager loading and ordering
I'm new to Laravel and thought it be cool to purchase the Codehappy ebook by Dayle Rees.
I just finished the blog tutorial and thought a bit on how he retrieved the posts from the Post model. Coming ...
6
votes
2
answers
6k
views
Fatal Error While Running Artisan (Laravel) on Command Line
I am experiencing a fatal error while using artisan on the (fantastic) Laravel PHP framework.
I recently downloaded v3.2.1 of Laravel, and I tried running the following command line from within the ...
4
votes
3
answers
2k
views
Laravel (and generic) framework setting for "Public" folder
I tried to make Laravel works on my environment (MAMP) but i'm stuck in this situation.
The index.php file of Laravel is into a subfolder called "public", so if I want to test my application I need ...
8
votes
2
answers
2k
views
How do I turn off the colors in Laravel's PHPUnit task?
I'm testing under Windows and the command prompt doesn't do so well with the ANSI color codes that appear by default. How can I turn off the color display when I'm using Laravel?
5
votes
4
answers
9k
views
Artisan: Could not find driver
I'm using Laravel last version: 3.2.1.
When I run this on terminal:
php artisan migration:install
I have this error:
could not find driver
I made some searches on Google and on Laravel's Forum, ...
12
votes
4
answers
14k
views
Laravel: Permission denied in laravel Blade File
I have the following issue when trying to install Laravel http://laravel.com
Any help, would be greatly appreciated.
Unhandled Exception
Message:
file_put_contents(/Users/alvincrespo/...
6
votes
2
answers
226
views
Optimal DB Schema
I'm about to redesign a DB schema and I'm considering using an ORM in my app, would the below schema work with, for example, Eloquent ORM, or would I also have to add the JOIN tables as well?
ISSUES(...
1
vote
4
answers
8k
views
How to create auto increment field
I want to add auto increment value in a field in mongodb using php, without using counting the records and next number(count + 1) will be my increment value...
Or Is there any way to create array of ...
21
votes
1
answer
12k
views
Setting up Laravel with Nginx
I'm attempting to set up the Laravel PHP Framework to work with Nginx. Here is my directory structure:
/project
/application
/laravel
/public
index.php
/legacy
/index.php
...
7
votes
2
answers
883
views
MySQL timestamp record being updated but affected rows remains 0
There are a few similar questions but I'll throw this in the mix.
Basically, I have a timestamp column (which is an int) and one of my updates is ONLY updating this timestamp column and sometimes it'...
4
votes
2
answers
3k
views
Session error using Laravel PHP
I get this error when enabling sessions, using the filesystem, in Laravel PHP.
Only variables should be passed by reference in SYS_PATH/session.php on line 230.
Stack Trace:
0 /Applications/XAMPP/...
15
votes
1
answer
11k
views
.htaccess not working even though allowoverride is enabled
I'm using CodeIgniter and have just installed a LAMP stack on an Ubuntu 10.10 cloud server.
Everything is working great, and I have the Apache userdir module enabled so that my home directory sits at ...