2: configuring myapp


development journey, step 1

Important! You should have, by this point:
PreRequisites:
Installed Laravel
Configured Laravel to work on server.
Access SFTP, github.

Change to public/.htaccess, discovered in the docs after hours of searching before reading the docs. rtfm

If you get this message:

No input file specified.

Then do this:
Options +FollowSymLinks RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php [L]

this must be set:
config/application.php
‘url’ => ‘gristech.com’,

updated controller

An important thing to note here is that by default, Laravel does NOT route to the controllers like other PHP-frameworks do. This is by design. By doing so, we can actually create simple pages without the need to create a controller for it. For example, if we wanted to create a static Contact Us page that just lists down contact information, we can simply do something like this:

1
2
3
4
Route::any('contact-us', function()
{

View original post 18 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s