- Web Applications
- Mobile Applications
- Desktop Applications
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 | |
Artisan::command('clear:cache', function () { | |
$this->call('view:clear'); | |
$this->call('config:cache'); | |
$this->call('optimize'); | |
}); | |
Artisan::command('clear:serve', function () { |
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 | |
Artisan::command('splate:database', function () { | |
// ask database name, default is splate | |
$connection = $this->ask('What is your connection type?', 'mysql'); | |
$host = $this->ask('What is your database host?', '127.0.0.1'); | |
$port = $this->ask('What is your database port?', 3306); | |
$database = $this->ask('What is your database name?', 'splate'); | |
$username = $this->ask('What is your database user?', 'root'); | |
$password = $this->secret('What is your database user\'s password?', 'password'); |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Mon, 14 Apr 2014 04:55:12 GMT till Tue, 14 Apr 2015 04:55:12 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter((user) -> user.location = 'malaysia')
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
<div class="btn-group"> | |
<a href="{{ route($route.'.show', ['id' => $resource->id]) }}" class="btn btn-default">Details</a> | |
<a href="{{ route($route.'.edit', ['id' => $resource->id]) }}" class="btn btn-primary">Edit</a> | |
<a href="{{ route($route.'.destroy', ['id' => $resource->id]) }}" | |
class="btn btn-danger" | |
onclick="event.preventDefault(); | |
if(confirm('{!! $confirm or 'Are you sure want to delete this record?' !!}')){document.getElementById('action-resource-form-{{ $resource->id }}').submit();}"> | |
Delete | |
</a> |
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\Routes; | |
use Illuminate\Support\Facades\Route; | |
/** | |
* Setup Routes for User | |
*/ | |
class User |
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 Closure; | |
use Theme; | |
class ThemeLoader | |
{ | |
/** |