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\Console\Commands; | |
use App\Models\Course; | |
use Illuminate\Console\Command; | |
use Spatie\Browsershot\Browsershot; | |
use Spatie\Crawler\Crawler; | |
use Spatie\Sitemap\SitemapGenerator; | |
use Spatie\Sitemap\Tags\Url; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
section { | |
background-color: #80b8e9; |
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\Controllers; | |
use App\Http\Resources\SiteSearchResource; | |
use App\Models\Comment; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Facades\File; |
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\Helpers\General; | |
use Illuminate\Container\Container; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
use Illuminate\Pagination\Paginator; | |
use Illuminate\Support\Collection; |
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
#!/usr/bin/env sh | |
# abort on errors | |
set -e | |
# build | |
npm run build | |
# navigate into the build output directory | |
cd build |
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; | |
class Composer extends \Illuminate\Support\Composer | |
{ | |
public function run(array $command) | |
{ |
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
@component('mail::message') | |
# Introduction | |
The body of your message. | |
@component('mail::button', ['url' => '']) | |
Button Text | |
@endcomponent | |
@component('mail::panel') |
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 | |
$folderPath = __DIR__ . '/path/to/folder/'; | |
try { | |
$dirIterator = new \RecursiveDirectoryIterator($folderPath); | |
/** @var \RecursiveDirectoryIterator | \RecursiveIteratorIterator $it */ | |
$it = new \RecursiveIteratorIterator($dirIterator); | |
// the valid() method checks if current position is valid eg there is a valid file or directory at the current position |
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 | |
// using array syntax | |
Route::group([ | |
'middleware' => [ | |
'auth:api', | |
\App\Http\Middleware\RedirectIfAuthenticated::class, | |
], | |
'prefix' => 'heyaa', // adding url prefix to all routes in this group | |
'as' => 'users.', // adding route name prefix to all routes in this group | |
'namespace' => "\App\Http\Controllers", |
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
# in ~/.bashrc | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home/sam/anaconda3/bin/conda' shel$ | |
if [ $? -eq 0 ]; then | |
\eval "$__conda_setup" | |
else |
NewerOlder