- Let's
- See
- How
- it Does
This is just a paragraph
| <?php | |
| namespace App; | |
| class Image | |
| { | |
| protected $path; | |
| public function __construct($path) | |
| { |
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Post extends Model | |
| { | |
| public static function findBySlug($slug) | |
| { |
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Web Routes | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here is where you can register web routes for your application. These | |
| | routes are loaded by the RouteServiceProvider within a group which | |
| | contains the "web" middleware group. Now create something great! |
| <?php | |
| //... | |
| dd(collect($this->fs->files('archive/'.$this->date))); | |
| //returns | |
| Illuminate\Support\Collection {#79 | |
| #items: array:24 [ | |
| 0 => "archive/2017-03-23/Something_2017-03-23_03-53-21.tsv" |
| // truncated composer.json file for the packge: | |
| "autoload": { | |
| "psr-4": { | |
| "Namespace\\": "src/" | |
| } | |
| } | |
| } | |
| <?php | |
| $file = 'some/path/to/file.csv'; | |
| $file = new SplFileObject($file); | |
| $file->getBasename(); | |
| // file.csv | |
| $file->getBasename('.csv'); |
| <?php | |
| namespace App\Events; | |
| class ClassWasGenerated | |
| { | |
| public $path; | |
| public function __construct($path) | |
| { |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | |
| class EventServiceProvider extends ServiceProvider | |
| { | |
| // Add the following to the $listen array | |
| protected $listen = [ |