Laravel 4 on Shared Host

Place the files of the Laravel public folder i.e. css, img, js etc; into public_html folder.

Put all the remaining folders & files into another folder, say ‘laravelcore’ and place the laravelcore folder in the root

Open index.php in the public_html folder and replace the following lines as mentioned

require DIR.’/../bootstrap/autoload.php’;

require __DIR__.'/../laravelcore/bootstrap/autoload.php';

$app = require_once DIR.’/../bootstrap/start.php’;

$app = require_once __DIR__.'/../laravelcore/bootstrap/start.php';

Open paths.php file in laravelcore/bootstrap and replace the following line

‘public’ => DIR.’/../public’,

'public' => __DIR__.'/../../public_html',

source: http://blog.laravel.in/how-to-setup-laravel-shared-hosts/

************
Update:

Move everything from public folder to root folder.

In index.php:

require __DIR__.'/bootstrap/autoload.php';

$app = require_once __DIR__.'/bootstrap/start.php';

bootstrap/paths.php:

'public' => __DIR__.'/..',

This is also interesting:

Having problems installing Laravel on shared hosting? A few pointers



Mm.

Nick Cave - 20,000th day on the planet Earth

Johnny Winter – Death Letter

I got a letter this mornin, how do you reckon it read?
It said, “Hurry, hurry, yeah, your love is dead”
I got a letter this mornin, I say how do you reckon it read?
You know, it said, “Hurry, hurry, how come the gal you love is dead?”

So, I grabbed up my suitcase, and took off down the road
When I got there she was layin’ on a coolin’ board
I grabbed up my suitcase, and I said and I took off down the road
I said, but when I got there she was already layin on a coolin’ board

Well, I walked up right close, looked down in her face
Said, the good ol’ gal got to lay here ’til the Judgment Day
I walked up right close, and I said I looked down in her face
I said the good ol’ gal, she got to lay here ’til the Judgment Day

Looked like there was 10,000 people standin’ round the buryin’ ground
I didn’t know I loved her ’til they laid her down
Looked like 10,000 were standin’ round the buryin’ ground
You know I didn’t know I loved her ’til they damn laid her down

Lord, have mercy on my wicked soul
I wouldn’t mistreat you baby, for my weight in gold
I said, Lord, have mercy on my wicked soul
You know I wouldn’t mistreat nobody, baby, not for my weight in gold

Well, I folded up my arms and I slowly walked away
I said, “Farewell honey, I’ll see you on Judgment Day”
Ah, yeah, oh, yes, I slowly walked away
I said, “Farewell, farewell, I’ll see you on the Judgment Day”

You know I went in my room, I bowed down to pray
The blues came along and drove my spirit away
I went in my room, I said I bowed down to pray
I said the blues came along and drove my spirit away

You know I didn’t feel so bad, ’til the good ol’ sun went down
I didn’t have a soul to throw my arms around
I didn’t feel so bad, ’til the good ol’ sun went down
You know, I didn’t have nobody to throw my arms around

I loved you baby, like I love myself
You don’t have me, you won’t have nobody else
I loved you baby, better than I did myself
I said now if you don’t have me, I didn’t want you to have nobody else

You know, it’s hard to love someone that don’t love you
Ain’t no satisfaction, don’t care what in the world you do
Yeah, it’s hard to love someone that don’t love you
You know it don’t look like satisfaction, don’t care what in the world you do

Got up this mornin’, just about the break of day
A-huggin’ the pillow where she used to lay
Got up this mornin’, just about the break of day
A-huggin’ the pillow where my good gal used to lay

Got up this mornin’, feelin’ round for my shoes
You know, I must-a had them old walkin’ blues
Got up this mornin’, feelin’ round for my shoes
Yeah, you know bout that, I must-a had them old walkin’ blues

You know, I cried last night and all the night before
Gotta change my way a livin’, so I don’t have to cry no more
You know, I cried last night and all the night before
Gotta change my way a livin’, you see, so I don’t have to cry no more

Ah, hush, thought I heard her call my name
If it wasn’t so loud and so nice and plain
Ah, yeah
Mmmmmm

Well, listen, whatever you do
This is one thing, honey, I tried to get along with you
Yes, no tellin’ what you do
I done everything I could, just to try and get along with you

Well, the minutes seemed like hours, hours they seemed like days
It seemed like my good, old gal outta done stopped her low-down ways
Minutes seemed like hours, hours they seemed like days
Seems like my good, old gal outta done stopped her low-down ways

You know, love’s a hard ol’ fall, make you do things you don’t wanna do
Love sometimes leaves you feeling sad and blue
You know, love’s a hard ol’ fall, make you do things you don’t wanna do
Love sometimes make you feel sad and blue



...and then you look down the front row and somebody yawns...

Nick Cave - 20,000th day on the planet Earth

Isten gyógyszere

Isten gyógyszere csillagfény a sötét égen,
Isten porszívója néma és minden kitisztul,
Isten tévéje fekete, de végtelen,

Ő láthatatlan, mellettem ül.



Vous vous taisez d'accord

Nick Cave - 20,000th day on the planet Earth

confirm popup in the url

onclick="if(!confirm('Are you sure to delete this item?')){return false;};"
<a href="{{ route('delete/item', $my_item->product_id) }}" onclick="if(!confirm('Are you sure to delete this item?')){return false;};" >Delete</a>


and because I felt that I can't keep up a marriage and two bands.

Nick Cave - 20,000th day on the planet Earth

Dynamic Layout in Laravel

BaseController:

class BaseController extends Controller {

/**
* Setup the layout used by the controller.
*
* @return void
*/

/*Set a layout properties here, so you can globally
call it in all of your Controllers*/
protected $layout = ‘layouts.default’;

protected function setupLayout()
{
if ( ! is_null($this->layout))
{
$this->layout = View::make($this->layout);
}
}

}


class HomeController extends BaseController {

public function showHome()
{
/*now you can control your Layout it here */
$this->layout->title= “Hi I am a title”; //add a dynamic title
$this->layout->content = View::make(‘home’);
}

}

 

source: http://teknosains.com/i/tutorial-dynamic-layout-in-laravel-4



So... we managed to get hold of Michael

Nick Cave - 20,000th day on the planet Earth

5 mins in Russia



Must be a time when they actually look at one another and think you know

Nick Cave - 20,000th day on the planet Earth

Plastic Jesus

Plastic Jesus

Well, I don’t care if it rains or freezes,
Long as I have my plastic Jesus
Riding on the dashboard of my car
Through all trials and tribulations,
We will travel every nation,
With my plastic Jesus I’ll go far.

{Refrain}
Plastic Jesus, plastic Jesus
Riding on the dashboard of my car
Through all trials and tribulations,
We will travel every nation,
With my plastic Jesus I’ll go far.

I don’t care if it rains or freezes
As long as I’ve got my Plastic Jesus
Glued to the dashboard of my car,
You can buy Him phosphorescent
Glows in the dark, He’s Pink and Pleasant,
Take Him with you when you’re travelling far

{Refrain}

I don’t care if it’s dark or scary
Long as I have magnetic Mary
Ridin’ on the dashboard of my car
I feel I’m protected amply
I’ve got the whole damn Holy Family
Riding on the dashboard of my car

{Refrain}

You can buy a Sweet Madonna
Dressed in rhinestones sitting on a
Pedestal of abalone shell
Goin’ ninety, I’m not wary
‘Cause I’ve got my Virgin Mary
Guaranteeing I won’t go to Hell

{Refrain}

I don’t care if it bumps or jostles
Long as I got the Twelve Apostles
Bolted to the dashboard of my car
Don’t I have a pious mess
Such a crowd of holiness
Strung across the dashboard of my car

{Refrain}

No, I don’t care if it rains or freezes
Long as I have my plastic Jesus
Riding on the dashboard of my car
But I think he’ll have to go
His magnet ruins my radio
And if we have a wreck he’ll leave a scar

{Refrain}

Riding through the thoroughfare
With his nose up in the air
A wreck may be ahead, but he don’t mind
Trouble coming, he don’t see
He just keeps his eyes on me
And any other thing that lies behind

Plastic Jesus, Plastic Jesus
Riding on the dashboard of my car
Though the sun shines on his back
Makes him peel, chip, and crack
A little patching keeps him up to par

When pedestrians try to cross
I let them know who’s boss
I never blow my horn or give them warning
I ride all over town
Trying to run them down
And it’s seldom that they live to see the morning

Plastic Jesus, Plastic Jesus
Riding on the dashboard of my car
His halo fits just right
And I use it as a sight
And they’ll scatter or they’ll splatter near and far

When I’m in a traffic jam
He don’t care if I say Damn
I can let all sorts of curses roll
Plastic Jesus doesn’t hear
For he has a plastic ear
The man who invented plastic saved my soul

Plastic Jesus, Plastic Jesus
Riding on the dashboard of my car
Once his robe was snowy white
Now it isn’t quite so bright
Stained by the smoke of my cigar

God made Christ a Holy Jew
God made Him a Christian too
Paradoxes populate my car
Joseph beams with a feigned elan
From the shaggy dash of my furlined van
Famous cuckold in the master plan

Naughty Mary, smug and smiling
Jesus dainty and beguiling
Knee-deep in the piling of my van
His message clear by night or day
My phosphorescent plastic Gay
Simpering from the dashboard of my van

When I’m goin’ fornicatin
I got my ceramic Satan
Sinnin’ on the dashboard of my Winnebago Motor Home
The women know I’m on the level
Thanks to the wild-eyed stoneware devil
Ridin’ on the dashboard of my Winnebago Motor Home
Sneerin’ from the dashboard of my Winnebago Motor Home
Leering from the dashboard of my van

If I weave around at night
And the police think I’m tight
They’ll never find my bottle, though they ask
Plastic Jesus shelters me
For His head comes off, you see
He’s hollow, and I use Him for a flask

Plastic Jesus, plastic Jesus
Riding on the dashboard of my car
Ride with me and have a dram
Of the blood of the Lamb
Plastic Jesus is a holy bar



It is that fleeting moment that we chase in the studio.

Nick Cave - 20,000th day on the planet Earth