» Home » laravel » Page 1
How to make Aptana shows Laravel statements color in .php files(support Laravel)?
Category : Programming Languages

Sublime Text 2 in my tutorial video shows Laravel statement color well, the same code in my Aptana is just white(in a *.php file), it treats the code as plain HTML text, how can I set Aptana to show code with color(support Laravel)?


@layout('master')
@section('main')
@foreach($users as $user)
{{$user->email}}
@endforeach
@endsection

View Replies


Laravel 4: How to install Meido Form and HTML ports from Laravel 3
Category : Web Design

I wanted to use Form and HTML classes in Laravel 4, so I went to Meido's GitHub pages for the HTML and Form ports. I followed the instructions to the letter. I added these lines to my app's providers:


'MeidoFormFormServiceProvider',
'MeidoHTMLHTMLServiceProvider',

I added these lines to my aliases:


'Form' => 'MeidoFormFormFacade',

View Replies


developing Laravel 3 and laravel 4
Category : Programming Languages

Does application build on Laravel 3 work on Laravel 4?


In few days ago I found Laravel and now I try to learn it. Am I losing time learning Laravel 3 when Laravel 4 is coming? Is this a same with some addons in LV4? And would my application build in LV3 work in LV4?
Where and how to start learning LV4?


View Replies


Laravel 4: how to run a raw SQL?
Category : Databases

I want to rename a table in Laravel 4, but don't know how to do that.


The SQL is alter table photos rename to images. If there is an Eloquent solution, I'd also like to know how to run a raw SQL, cause sometimes there's just no alternative.


View Replies

TAGS : Laravel

Laravel - When to use ->get()
Category : Web Design

I'm confused as to when ->get() in Laravel...


E.G. DB::table('users')->find(1) doesn't need ->get() to retrieve the results, neither does User::find(1)


The laravel docs say "...execute the query using the get or first method..."


I've read the Fluent Query Builder and Eloquent docs but don't understand when the usag


View Replies

TAGS : Laravel When

Laravel 4 permissions
Category : Programming Languages

so this is basically the sql model i got so far:



This is, how it would look at my users controller (stackoverflow formatting):


if (Auth::user()->is('admin'))
{
if (Auth::user()->can('delete'))
{
echo 'hurra!';

View Replies


Laravel 4: where's the profiler?
Category : Programming Languages

I used to be able to enable the profiler using the profiler property in /application/config/application.php.


It's no longer there. How can I enable it?


View Replies


Laravel 4: where is to_array()?
Category : Programming Languages

Man, this is getting frustrating!


In Laravel 4, using Eloquent, this works: var_dump(Worker::find(1));. But if I try to use to_array(), it falls apart: var_dump(Worker::find(1)->to_array());. This throws the following exception:


call_user_func_array() expects parameter 1 to be a valid callback, class 'IlluminateDatabaseQueryBuild


View Replies


Laravel cannot use mysql_real_escape_string()
Category : Programming Languages

I get a database connection error when trying to use mysql_real_escape_string() within Laravel. Fluent queries work properly so I assume that the database has been configured correctly.


How should mysql_real_escape_string() be used from Laravel? I'm using it to escape the values in a SQL query that I need to build myself due to limitations of Fluent.


View Replies


Laravel Before Filter
Category : Programming Languages

Can some guide me this line I already read at forum also some blog but not clearing the logic


array('before' => 'auth', 'do' => function()

View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .