Skip to main content

Posts

Showing posts from June, 2020

Angular Helping Commands

Subject init Subject -> public readonly goToDirectory$ = new Subject< string >(); Subscribe Subject ->  s = this .common. goToDirectory$ . subscribe ((folder_id)                   => {      this . getListing (folder_id);} ); Emitt Data ->  this .common. goToDirectory$ . next (folder_id);

Laravel Help full commands

DB commands   Concat Two coloms:  DB::raw("CONCAT(u.first_name,' ',u.last_name) as full_name")     Search case sensitive:  -> where( 'name' , 'ilike' , $name ) Upload File In Chunks:: public function write(string $path , UploadedFile $file ) { Storage:: makeDirectory ( 'dir_name' ); $resource = fopen (Storage:: path ( $path ), 'a+' ); fwrite ( $resource , $file ->get()); fclose ( $resource ); }