Route ==> routes/app.php
Controller ==> app/Http/Controllers
Views ==> resources/views
Configh database ==> .env
Create controller == > ‘php artisan make:controller
nameController --plain’
php.blade file : {{ $valiable }}
mainlayout
@yield(‘page_title’)
@yield(‘content’)
//fix .env show to public
Options -Indexes
<Files .env>
Order allow,deny
Deny from all
index.php
@extens(‘layout.main’)
@section(‘page_title’,’hello page’)
@section(‘conten’)
{{ $subtitle}}
@stop
get time now : {{ time() }}
{{ isset($name) ? $name : ‘default’) }} or shor hand {{
$name or ‘Default’ }}
Show html in string php like ‘hhhh’ ==> {{ !! $name !! }}
if else in blase :
@if ( $something == 1)
I have 1
@elseif ( $something == 2)
ihave 2
@else
i have else
@endif //dont forgot to endif
@unless ( Auth::check())
you are not signed in.
@endunbless
for Loop :
@for( $i=1;$<10;$i++)
asdasdas
@endfor
@while(true)
i am looping forever
@endwhile
//ubuntu sudo chmod -R 777 ./storage ./bootstrap sudo composer update set password for databse in file .env //fix if cant fount route ubuntu https://www.youtube.com/watch?v=7CatEn5IAlo
//fix .env show to public
Options -Indexes
<Files .env> Order allow,deny Deny from all
//Migration php artisan make:migration create_namefile_table --create=nametable php artisan make:migration add_some_field_name --table=somefield php artisan migrate php artisan migrate:rollback php artisan migrate:reset php artisan migrate:refresh php artisan make:model NameTable