Skip to content

Instantly share code, notes, and snippets.

Dragan Mijatovic gandra

Block or report user

Report or block gandra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"caouecs/laravel-lang": "~3.0",
"darkaonline/l5-swagger": "~4.0",
View composer-install-optimize-autoloader.sh
vagrant@my-api:~/Code/my-api$ composer install --no-dev --optimize-autoloader
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
PHP Fatal error: Uncaught InvalidArgumentException: Authentication user provider [external-user] is not defined. in /home/vagrant/Code/my-api/vendor/laravel/framework/src/Illuminate/Auth/CreatesUserProviders.php:40
Stack trace:
#0 /home/vagrant/Code/my-api/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(123): Illuminate\Auth\AuthManager->createUserProvider('users')
View MyTestingComponent.spec..ts
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from "@angular/router/testing";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing";
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { MyService1, MyService2, MyService3, MyService4, MyService5, MyService6, SomeClass } from '../comun/services';
import { Ng2Bs3ModalModule } from "ng2-bs3-modal/ng2-bs3-modal";
import { MyTestingComponent } from './my-testing-component.component';
View gist:b8a842b6cfd3267cde186f351875ecee
image: woohuiren/php-laravel-env:5.3
services:
- mysql:latest
before_script:
- bash .gitlab-key-inject.sh # Script injection for SSH keys used for deployments
variables:
MYSQL_DATABASE: laravel
View angular-cli.json
{
"project": {
"version": "1.0.0-beta.25.5",
"name": "my-project"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
View angular-cli.json
{
"project": {
"version": "1.0.0-beta.25.5",
"name": "kibernum-dnc-client"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
View app.component.html
<header class="main-header">
<!-- Logo -->
<a href="./" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>Min</b>ju</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Minju</b> 003</span> </a>
<!-- Header Navbar: style can be found in header.less -->
View app.component.ts
import { Component, ViewChild, OnInit, ElementRef, HostBinding } from '@angular/core';
import { environment } from '../environments/environment';
import { MenuComponent } from './menu';
import { LoginService, EstiloService, UtilService } from './comun/services';
import { KeycloakService } from './comun/keycloak';
import * as moment from 'moment/moment';
import { enableProdMode } from '@angular/core';
if (environment.production) {
enableProdMode();
View gist:f968ae4435dc79188aca414ad1de3124
cd MY_PROJECT_ROOT_DIR
git reset --hard HEAD
git checkout master
git pull
composer install
composer update
php artisan migrate
php artisan db:seed
@gandra
gandra / gist:f3a45a638df036e280303ff6d94a89d0
Created Jan 30, 2017
laravel-backend-err-invalid-user
View gist:f3a45a638df036e280303ff6d94a89d0
[2017-01-30 23:52:46] local.ERROR: League\OAuth2\Server\Exception\OAuthServerException: The user credentials were incorrect. in D:\www\laravel54-passport-demo-external-user\vendor\league\oauth2-server\src\Exception\OAuthServerException.php:120
Stack trace:
#0 D:\www\laravel54-passport-demo-external-user\vendor\league\oauth2-server\src\Grant\PasswordGrant.php(98): League\OAuth2\Server\Exception\OAuthServerException::invalidCredentials()
#1 D:\www\laravel54-passport-demo-external-user\vendor\league\oauth2-server\src\Grant\PasswordGrant.php(53): League\OAuth2\Server\Grant\PasswordGrant->validateUser(Object(Zend\Diactoros\ServerRequest), Object(Laravel\Passport\Bridge\Client))
#2 D:\www\laravel54-passport-demo-external-user\vendor\league\oauth2-server\src\AuthorizationServer.php(179): League\OAuth2\Server\Grant\PasswordGrant->respondToAccessTokenRequest(Object(Zend\Diactoros\ServerRequest), Object(League\OAuth2\Server\ResponseTypes\BearerTokenResponse), Object(DateInterval))
#3 D:\www\laravel54-passport-demo-exte
You can’t perform that action at this time.