Rectangle 27 33

Run composer install in your project's root folder.

This happens when you create a project by downloading and extracting the laravel/laravel repo from GitHub, not by using the Composer command:

composer create-project laravel/laravel your-project-name

In this case the dependencies are not installed, so the vendor folder that contains Artisan doesn't exist. Running composer install in your project's root folder will install the dependencies vendor folder.

This is independent from your problem but your Artisan command is a bit deficient. You forgot =users (the table name) from the end. Also if you create a table you dont have to specify the table name again with the --table option so this command would be enough:

php artisan migrate:make create_users_table --create=users

Thank you for providing not only the solution, but a straightforward explanation of the problem.

Yess thank you I was so confused about how this was not working. You have to run composer install

php - Unable to execute Laravel artisan commands - Stack Overflow

php bash laravel laravel-4
Rectangle 27 0

these are not real errors... they may be templates or config files etc. and not php files (thus you are getting parsing errors).

They can safely be ignored, however if you really want to get rid of them, you can add their file extensions in the ignored files of your project properties (i.e. *.test using examples above) and those files will not even appear in your project's source tree in NetBeans any more.

php - Laravel 4 : Shows errors in vendor folder - Stack Overflow

php laravel-4
Rectangle 27 0

When you look into the laravel 4 core framework's Paginator, you will see in the view folder vendor/laravel/Illuminate/Paginator/views a file called slider-3.php! This view uses the bootstrap 3 paginator

<?php if ($paginator->getLastPage() > 1): ?>
<ul class="pagination">
        <?php echo $presenter->render(); ?>
</ul>

Knowing this, you simply change the paginator in the app/config/view to

'pagination' => 'pagination::slider-3',

Laravel 4 pagination with Bootstrap 3 - Stack Overflow

pagination laravel laravel-4 twitter-bootstrap-3
Rectangle 27 0

You don't need install Laravel separately from the app it is part of - these days a PHP app just contains everything it needs in its vendor folder. How to deploy depends on how you have arranged your dependencies locally, but the simplest way is to copy everything in your local project to your remote server (FTP or rsync). I don't think Laravel demands a VPS, but if you are using Node as well, then yes you will.

So, the short answer is: if it works locally, copy it up to the remote host, and it should work there. Make sure you've set up your config system in your app so that it can cope with the different settings you need in local/remote environments, such as database connection settings.

My feeling is that a shared host would be easier for you as a beginner - is the Node.js component of your app critical? Running your own VPS is not difficult, but there is quite a bit to learn. Your distro (such as Ubuntu) would be ready-installed, and on top of that you would use the package system (something like apt-get) to install Apache, PHP, PHP modules, phpMyAdmin, git, and whatever else you need.

Yes, you can certainly deploy using Git. One way to do this is to create bare repositories on your server in a private place, set it up as a remote in your local dev machine, and push to it as your off-site copy. Then, from your dev or production web folders, pull and update submodules. This is not trivial, and requires at least a working knowledge of Git - so presently I wouldn't recommend this route.

This does make since. and Yes I am using node for live updating content. However, what is the difference between a VPS and a remote server? and when you say that Laravel has everything I need, WHat about the MySql database? The VPS I am looking at has a Lampstack template. Is lampstack what I am lookingfor? it says it come with mysql and apache

You didn't mention MySQL in your question, but if you need that, then it would need to be explicitly installed, yes. It's usually quite easy - install the server, the console client, and the PHP modules - one command each. I've not heard of a "Lampstack template" but it does sound ideal - probably saves you installing a good few things.

"Remote server" is just a generic term - it can be of any type: shared, VPS, dedicated, cloud.

For some reason I didn't see the last two paragraphs of your initial answer. Basically all I am trying to do is run this app at a company who has two buildings with a mile distance between. They already have a server running between the two buildings. They have been testing the app over the past week on a Mac and accessing it via wifi by going to the-macs-name.local. They are wondering if I can connect it to both buildings. Is a vps the correct Route? or is there a more simple way to accomplish this task?

If you have a machine on the LAN and you can refer to it via a DNS name, then a VPS would be an unnecessary expense. I wouldn't run it via wifi though: do you have a proper wired WAN between both buildings?

php - Setting up a Laravel 4 app on a VPS - Stack Overflow

php deployment phpmyadmin laravel-4 vpn
Rectangle 27 0

In Laravel you can change the folder your applications load the framework and dependencies from bootstrap/autoload.php.

There's a require __DIR__.'/../vendor/autoload.php'; line in it and you can change it to whatever you need. Thus you can change it to some outside folder, common to all projects.

Yup I see, and how about the composer part? How can I run a composer inside the CDN? just adding a single composer.json with all the require?

Yes, why not? Laravel does not depend on composer, it depends on the packages it maintains.

Ok, I'm doing it right now. If it's ok you'll take the point :)

There's a problem, My custom library inside "project1/app/lib/Project1" is hidden, IDK why. If I test another project, like project2, where there isn't any custom library it works like a charm

How are you including that library? I'm guessing a composer psr autoloader. You'll have to include it some other way or set up composer just for those (in each project you need to autoload libs) and include it's bootstrap.

php - Centralize vendor folder in Laravel 4.1.x - Stack Overflow

php laravel-4 composer-php directory-structure
Rectangle 27 0

In a .gitignore you can use the ! operator to "unignore" files.

The following example will ignore everything in the vendor directory, but anything in vendor/MyFolder will be "unignored"

vendor/
!vendor/MyFolder

php - Gitignore Laravel vendor folder - Stack Overflow

php mysql git laravel version-control