This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# Language based greetings, and laravenewbie nick change welcome message | |
# | |
# Commands: | |
# hubot show greeting for {language} | |
# hubot I speak {language} | |
# hubot forget my greeting | |
# hubot what is my greeting | |
# hubot greeting | |
# hubot list languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http; | |
use Illuminate\Pipeline\Pipeline; | |
use Illuminate\Support\Facades\Facade; | |
use Illuminate\Foundation\Http\Kernel as HttpKernel; | |
class Kernel extends HttpKernel | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function register($name, $controller, array $options = []) | |
{ | |
... | |
// We need to extract the base resource from the resource name. Nested resources | |
// are supported in the framework, but we need to know what name to use for a | |
// place-holder on the route parameters, which should be the base resources. | |
$base = $this->getResourceWildcard(last(explode('.', $name))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Model trait | |
Uses: | |
Model::getDates() // to not search dates | |
Model::getHidden() // to not search hidden fields | |
Optional: | |
var $searchable = [] // set which fields you want searchable | |
var $unsearchable = [] // set which fields should be unsearchable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Routing; | |
use Illuminate\Support\Str; | |
class ResourceRegistrar | |
{ | |
protected static $wildcardMap = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Lang; | |
use Closure; | |
class AuthCheck | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. |
NewerOlder