|
| 1 | +- Write Must Be: |
| 2 | +-- Vars Must Be |
| 3 | + -> If It Two Words Or More -> $smallCapital |
| 4 | + -> If It One Word -> $small |
| 5 | +-- Functions Must Be |
| 6 | + -> If It Two Words Or More -> smallCapital() |
| 7 | + -> If It One Word -> small() |
| 8 | +-- Names Of Tables In Database Muse Be Like His Job And |
| 9 | + -> If It Two Words Or More -> Name Of Table(_)His Job -> user_id |
| 10 | +-- Classes Name In Html Must Be |
| 11 | + -> If It Two Words Or More -> small-small |
| 12 | + -> If It One Word -> small |
| 13 | + -> Between Words We Will Put - |
| 14 | +-- Id & Name Of Input In Html Must Be |
| 15 | + -> If One Word -> small |
| 16 | + -> If Two Words Or More -> smallCapital |
| 17 | +-- Names Of Files & Controles Must Be |
| 18 | + -> If One Word -> File.blade.php |
| 19 | + -> If Two Words Or More -> FileFile.blade.php |
| 20 | +-- Commit In Github Must Be |
| 21 | + -> Your Task |
| 22 | +-- Comment In Programming Must Be |
| 23 | + -> Explain What Does It Do |
| 24 | +//////////////////////////// |
| 25 | +Admin Css -> public admin css |
| 26 | +Admin Js -> public admin js |
| 27 | +Shop Css -> public shop css |
| 28 | +Shop Js -> public shop js |
| 29 | +Images -> public images |
| 30 | +Admins Blades -> admin |
| 31 | +Shops Blades -> shop |
| 32 | +/////////////////////////// |
| 33 | +// For Defaults |
| 34 | +$pathsArray = [ |
| 35 | + 'admin_css' => url('public/admin/css'), |
| 36 | + 'admin_js' => url('public/admin/js'), |
| 37 | + 'admin_image' => url('public/admin/images'), |
| 38 | + 'shop_css' => url('public/shop/css'), |
| 39 | + 'shop_js' => url('public/shop/js'), |
| 40 | + 'shop_image' => url('public/shop/images'), |
| 41 | + 'shop_view' => 'shop', |
| 42 | + 'admin_view' => 'admin', |
| 43 | +]; |
| 44 | +foreach ($pathsArray as $Name => $Path) { |
| 45 | + app()->singleton($Name,function() use ($Path){ |
| 46 | + return $Path; |
| 47 | + }); |
| 48 | +} |
| 49 | +// To Use It app('css') / {{app('css')}} |
0 commit comments