TerrePorter

TerrePorter

Member Since 5 Years Ago

Experience Points
33,650
Total
Experience

1,350 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
234
Lessons
Completed
Best Reply Awards
20
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 7
33,650 XP
Sep
19
1 day ago
Activity icon

Replied to Laravel 8 - Route Controller Never Loads

no, but that fixed it. Thanks

Activity icon

Started a new Conversation Laravel 8 - Route Controller Never Loads

I have a new install but for some reason the i cant seem to get any other route to function, except the jetstream routes those work.

Route::get('test', function () {
    echo 'test';
});

use App\Http\Controllers\IndexController;
Route::get('test2', [IndexController::class, 'test2']);

both of these return 404 not found.

I have yet to figure out why.

Sep
16
4 days ago
Activity icon

Replied to Add Data To Auth::user()

I think that is what i did. Thanks

Been stuck in wordpress, so forgetting most of my laravel stuff

Activity icon

Started a new Conversation Add Data To Auth::user()

I need to put extra data in the user object after logging in.

Auth::user()->id

Auth::user()->myvar

I did this once before, but I can’t seem to find the project. Can anyone refresh my memory?

Jul
03
2 months ago
Activity icon

Awarded Best Reply on What Am I Doing Wrong? LoadViewsFrom

figured it out, had a type-o in another palace that was overwriting the hints completely.

Activity icon

Replied to What Am I Doing Wrong? LoadViewsFrom

figured it out, had a type-o in another palace that was overwriting the hints completely.

Activity icon

Replied to What Am I Doing Wrong? LoadViewsFrom

any ideas? really at a confused state right now

Jul
02
2 months ago
Activity icon

Replied to What Am I Doing Wrong? LoadViewsFrom

I tried this as well, but it to returns the same error

$this->app['view']->addNamespace('test', $viewsPath);
Activity icon

Replied to What Am I Doing Wrong? LoadViewsFrom

the test.login would be for a directory.template style. Since i am using the package it would be the other.

Activity icon

Started a new Conversation What Am I Doing Wrong? LoadViewsFrom

This doesn't seem to be working as expected from my packages service provider.

 $viewsPath = [
            __DIR__ . "resources/views/themes/one",
            __DIR__ . "resources/views/themes/default",
        ];
        $this->loadViewsFrom($viewsPath, 'test');

on the page i get the following error

View [login] not found. (View: /home/vagrant/Code/_play/test/resources/views/auth/login.blade.php) 

the template only has the following

@extends('test::login')

The service provider is loading but something odd is happening to the namespace path

Any ideas?

Jun
11
3 months ago
Activity icon

Awarded Best Reply on Elequent Pivot Belongs To Many

I seemed to have figured it out, it was something to do with the custom column names in the category_group_categories table.

Activity icon

Replied to Elequent Pivot Belongs To Many

I seemed to have figured it out, it was something to do with the custom column names in the category_group_categories table.

Activity icon

Started a new Conversation Elequent Pivot Belongs To Many

I am only getting on result in the categories response and i cant seem to find any errors. The problem is i only get one result, not four.

IndexController

 // get active campaign
        $campaign = Campaign::where('start_date', '<=', Carbon::now())->where('end_date', '>=', Carbon::now())->first();

$campaign->load('CategoryGroup.Categories');
var_dump($campaign->toArray());

// result
array (size=11)
  'id' => int 5
  'status' => int 4
  'name' => string 'Campaign 1' (length=18)
  'categories_group_id' => int 8
  'businesses_group_id' => int 3
  'start_date' => string '2020-06-01T00:00:00.000000Z' (length=27)
  'end_date' => string '2020-06-13T00:00:00.000000Z' (length=27)
  'created_at' => string '2020-05-04T13:18:10.000000Z' (length=27)
  'updated_at' => string '1999-12-20T08:31:53.000000Z' (length=27)
  'deleted_at' => null
  'category_group' => 
    array (size=3)
      'id' => int 2
      'campaigns_id' => int 5
      'categories' => 
        array (size=1)
          0 => 
            array (size=8)
     		 'id' => int 4
      		'name' => string 'Category A' (length=20)
     		 'type' => string '0' (length=1)
      		'tag' => string 'category_a' (length=19)
	      	'created_at' => string '1974-11-30T19:46:06.000000Z' (length=27)
      		'updated_at' => string '1982-03-21T15:51:34.000000Z' (length=27)
      		'deleted_at' => null
      		'pivot' => 
        		array (size=2)
          			'categories_id' => int 2
          			'category_groups_id' => int 4

Campaign model

 public function CategoryGroup(  )
    {
        return $this->hasOne('App\CategoryGroup', 'campaigns_id', 'id' );
    }

CategoryGroup model

public function Categories()
    {
        return $this->belongsToMany('App\Category', 'category_group_categories', 'categories_id', 'category_groups_id');
    }

Database data

Campaigns


$campaigns = array(
	array(
		"id" => 5,
		"status" => 4,
		"name" => "Campaign 1.",
		"categories_group_id" => 8,
		"businesses_group_id" => 3,
		"start_date" => "2020-06-01 00:00:00",
		"end_date" => "2020-06-13 00:00:00",
		"created_at" => "2020-05-04 13:18:10",
		"updated_at" => "1999-12-20 08:31:53",
		"deleted_at" => NULL,
	),
);

Category Group

$category_groups = array(
	array(
		"id" => 8,
		"campaigns_id" => 4,
	),
);

Categories group categories pivot

$category_group_categories = array(
	array(
		"id" => 2,
		"category_groups_id" => 4,
		"categories_id" => 4, // Category A
	),
	array(
		"id" => 3,
		"category_groups_id" => 4,
		"categories_id" => 7,
	),
	array(
		"id" => 4,
		"category_groups_id" => 4,
		"categories_id" => 2,
	),
	array(
		"id" => 5,
		"category_groups_id" => 4,
		"categories_id" => 6,
	),
);

Any ideas?

May
31
3 months ago
Activity icon

Replied to DataTables And Laravel

oh man, that was the problem i was missing a little s, grr

Activity icon

Replied to DataTables And Laravel

yes it is in a blade template

@section('js')
    <script>

        $(document).ready(function () {

            $('#userList').DataTable({
                'processing': true,
                'serverSide': true,
                'serverMethod': 'get',
                'ajax': {
                    'url': "{{ route('api.getUsers', ['api_token=' => $apiToken ])}}",
                    'dataSrc': "data"
                },
                'columns': [
                    { data: 'user' },
                    { data: 'last_login' },
                    { data: 'ballots_life' },
                    { data: 'ballots_campaigns' },
                    { data: 'buttons' },
                ]
            });


            // Handler for .ready() called.
        });

    </script>
@stop
Activity icon

Replied to DataTables And Laravel

nothing in console

Activity icon

Replied to DataTables And Laravel

Ok, i updated that. I see it was url encoding the link. However, there is still no request from the browser though.

Activity icon

Started a new Conversation DataTables And Laravel

I am trying to set up a DataTable's in Laravel but for some reason it doesn't do the XHR request on the browser.

$('#userList').DataTable({
                'processing': true,
                'serverSide': true,
                'serverMethod': 'get',
                'ajax': {
                    'url': "{{ route('api.getUsers', 'api_token='. $apiToken) }}",
                    'dataSrc': "data"
                },
                'columns': [
                    { data: 'user' },
                    { data: 'last_login' },
                    { data: 'ballots_life' },
                    { data: 'ballots_campaigns' },
                    { data: 'buttons' },
                ]
            });

The api works.

{"draw":1,"recordsTotal":1,"recordsFiltered":1,"data":[{"user":"test","last_login":"today","ballot_life":1,"ballot_campaign":1,"buttons":"buttons"}]}

Anyone have any ideas?

May
17
4 months ago
Activity icon

Replied to How To Remove Public From Laravel 6 Website

@sid0001 I haven't updated this to the new laravel version but I had an issue where i needed to specify custom paths for the app. So this might help, https://github.com/TerrePorter/LaravelFrameworkLoader

edit: This was for this type of file path

hostroot\laravel_app
hostroot\public

I couldnt get the .htaccess to work and i had no access to change the hostroot path.

I just copied what was in the laravel public to the hostroot\public and update the path in the index file.

Activity icon

Replied to Publish Service Provider

@denniseilander I ended up just making a packages folder and loading the code that way. Thanks though

May
14
4 months ago
Activity icon

Started a new Conversation Publish Service Provider

I am starting a new package development but the symlink is not working, so i did mirror but i don't want to develop code in the vendor dir. I was thinking that I could publish everything and update the code there then copy it back to the main package project. I am having a hard time getting the service provider to publish, can someone point my tired brain to the correct code?

Apr
08
5 months ago
Activity icon

Replied to Laravel/ui

@artcore I did uncomment the withFacades. I have no clue on the session usages. I lost the tutorial page when my browser crashed, so having trouble finding it.

It was using passport for authentication, and dingo/api for the api code

Activity icon

Started a new Conversation Laravel/ui

So I was playing with lumen and passport, and the tutorial that i was mostly following has laravel/ui installed.

I installed it and added the service provider, but I now get a error

$ php artisan ui bootstrap --auth

In Facade.php line 261:

  Call to undefined method Laravel\Lumen\Routing\Router::mixin()

any ideas?

Apr
05
5 months ago
Activity icon

Replied to Composer Fails

well happened upon a solution, if i install the package globally then do a local project install it works.

Activity icon

Replied to Composer Fails

perhaps someone can test and see that it works for them?

composer require composer/installers
Activity icon

Started a new Conversation Composer Fails

Hey, been having this problem a lot lately but have not traced it down. Looking for suggestions or ideas.

Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/vagrant/.composer): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/.composer): git describe --exact-match --tags
Executing command (/home/vagrant/.composer): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/.composer): hg branch
Executing command (/home/vagrant/.composer): fossil branch list
Executing command (/home/vagrant/.composer): fossil tag list
Executing command (/home/vagrant/.composer): svn info --xml
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Slince\Crm\RepositoryManager
Loading plugin Hirak\Prestissimo\Plugin
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Running 1.10.1 (2020-03-13 20:34:27) with PHP 7.4.4 on Linux / 4.15.0-91-generic
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Executing command (/home/vagrant/.composer): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/.composer): git describe --exact-match --tags
Executing command (/home/vagrant/.composer): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/.composer): hg branch
Executing command (/home/vagrant/.composer): fossil branch list
Executing command (/home/vagrant/.composer): fossil tag list
Executing command (/home/vagrant/.composer): svn info --xml
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Slince\Crm\RepositoryManager_composer_tmp0
Loading plugin Hirak\Prestissimo\Plugin_composer_tmp1
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Reading ./composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file ./composer.json
Executing command (/home/vagrant/Code/_play/ttttmp): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/Code/_play/ttttmp): git describe --exact-match --tags
Executing command (/home/vagrant/Code/_play/ttttmp): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/Code/_play/ttttmp): hg branch
Executing command (/home/vagrant/Code/_play/ttttmp): fossil branch list
Executing command (/home/vagrant/Code/_play/ttttmp): fossil tag list
Executing command (/home/vagrant/Code/_play/ttttmp): svn info --xml
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Slince\Crm\RepositoryManager_composer_tmp2
Loading plugin Hirak\Prestissimo\Plugin_composer_tmp3
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-10.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2020-01.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/provider-composer$installers.json from cache
./composer.json has been created
Reading ./composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file ./composer.json
Executing command (/home/vagrant/Code/_play/ttttmp): git branch --no-color --no-abbrev -v
Executing command (/home/vagrant/Code/_play/ttttmp): git describe --exact-match --tags
Executing command (/home/vagrant/Code/_play/ttttmp): git log --pretty="%H" -n1 HEAD
Executing command (/home/vagrant/Code/_play/ttttmp): hg branch
Executing command (/home/vagrant/Code/_play/ttttmp): fossil branch list
Executing command (/home/vagrant/Code/_play/ttttmp): fossil tag list
Executing command (/home/vagrant/Code/_play/ttttmp): svn info --xml
Reading /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file /home/vagrant/.composer/composer.json
Loading config file /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/auth.json
Reading /home/vagrant/.composer/vendor/composer/installed.json
Loading plugin Slince\Crm\RepositoryManager_composer_tmp4
Loading plugin Hirak\Prestissimo\Plugin_composer_tmp5
Downloading https://repo.packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Loading composer repositories with package information
Writing /home/vagrant/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-10.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-2020-01.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json from cache
Reading /home/vagrant/.composer/cache/repo/https---repo.packagist.org/provider-composer$installers.json from cache
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.000 seconds
Analyzed 118 packages to resolve dependencies
Analyzed 85 rules to resolve dependencies
Package operations: 1 install, 0 updates, 0 removals
Installs: composer/installers:v1.8.0
  - Installing composer/installers (v1.8.0): Reading /home/vagrant/.composer/cache/files/composer/installers/c315625b86fe468c665112c4fed3847ceb792e10.zip from cache
Loading from cache
 Extracting archive
Executing command (CWD): unzip -qq  '/home/vagrant/Code/_play/ttttmp/vendor/composer/installers/e9f1b99936a4d5190b6a13419f91f39c' -d '/home/vagrant/Code/_play/ttttmp/vendor/composer/5010d8c5'
Plugin installation failed, rolling back
  - Removing composer/installers (v1.8.0)

Installation failed, deleting ./composer.json.


  [RuntimeException]
  Could not delete /home/vagrant/Code/_play/ttttmp/vendor/composer/installers/src/Composer:


Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Util/Filesystem.php:217
 Composer\Util\Filesystem->unlink() at phar:///usr/local/bin/composer/src/Composer/Util/Filesystem.php:170
 Composer\Util\Filesystem->removeDirectoryPhp() at phar:///usr/local/bin/composer/src/Composer/Util/Filesystem.php:137
 Composer\Util\Filesystem->removeDirectory() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:238
 Composer\Downloader\FileDownloader->remove() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:299
 Composer\Downloader\DownloadManager->remove() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:224
 Composer\Installer\LibraryInstaller->removeCode() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:137
 Composer\Installer\LibraryInstaller->uninstall() at phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:66
 Composer\Installer\PluginInstaller->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:173
 Composer\Installer\InstallationManager->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:160
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:611
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:232
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:248
 Composer\Command\RequireCommand->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:205
 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:281
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:113
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:61
 require() at /usr/local/bin/composer:24

require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

Packages just seem to fail with no reason.