Category - Eloquent

Hourly Tracker - Time Tracking App

Hourly Tracker - Time Tracking App

By Imran Iqbal In Eloquent -

Documentation Admin demo http://hourlytracker.io/login (read only mode) Username : admin@mail.com Password : admin Hourly tracker is a time tracker application designed to record time with proof of screenshots, all timesheets can be invoices, you can also raise a offline invoices,...

RSS Auto Pilot - One Click Site Builder

RSS Auto Pilot - One Click Site Builder

By Imran Iqbal In Eloquent -

Documentation Admin demo http://www.phpdummies.com/login (read only mode)  Username : admin@mail.com  Password : admin    RSS Aggregator is a RSS Feed Content Site Builder and Blogging System to Create and Manage Money Making website or you can even...

Eloquent ORM in Laravel

Eloquent ORM in Laravel

By Venkata Krishna In Eloquent -

In our previous tutorials we have learned how to configure database and how we can use the schema builder to structure tables within our database. But to insert data we have to write SQL queries using the data object. But what if we  don't need to write SQL query and eve...

Next and Prev Post Links

Next and Prev Post Links

By Imran Iqbal In Eloquent -

Find next and previous posts using current displayed post_id $next = DB::table("posts")->where("id", ">", $post_id)->first(); $prev = DB::table("posts")->where("id", "<", $post_id)->orderBy('created_at', '...

Use DB Class more than your Models

Use DB Class more than your Models

By Imran Iqbal In Eloquent -

You may be thinking wow its so easy so i call Posts::find(1); If you dont need to dont use it . Below are some situations when you use models 1.When you need relationships 2.Scope methods 3.Putting some helper methods in your models If above situation is negative then please use DB::tabl...

RENAMING COLUMNS IN MIGRATION

RENAMING COLUMNS IN MIGRATION

By Imran Iqbal In Eloquent -

If you are using Laravel then code the laravel way or go back to plain php . Scenario You have created a column with type Integer and looking around to change it to String . You may think of the below solutions 1.Running raw query using DB::statement or DB::select . 2.Drop the column and...

SECURE LOGIN SYSTEM – PHP(LARAVEL) – 4

SECURE LOGIN SYSTEM – PHP(LARAVEL) – 4

By Imran Iqbal In Eloquent -

So we are back now . As promised in Secure Login System – PHP(Laravel) -3 we will start with forgot password .Before we start make sure your mail settings are correct , go to app/config/mail.php and change following fields if not yet changed   Download Code View On Github &nbs...