全文検索:
- 04 変数の型
- さい。両方とも大文字小 文字に依存しません。 === 例 === <code> <?php var_dump((bool) ""); // bool(false) var_dump((bool) 1); // bool(true) var_dump((bool) -2); // bool(true) var_dump((bool) "foo"); // bool(true) var_dump((bool) 2.3e
- 13 laravel-admin @11_php:02_framework:01_laravel
- igned not null auto_increment primary key, `name` varchar(255) not null, `email` varchar(255) not null, `email_verified_at` timestamp null, `password` varchar(255) not null, `remember_token` varchar(100) null, `created_at` timestamp null, `updated_at` times
- 01 Mail class @11_php:05_class
- mb_internal_encoding("UTF-8") ; Class Mail { var $to = ''; var $cc = ''; var $title = ''; var $body = ''; var $from = ''; var $fromName = ''; var $header = '';
- 05 変数
- a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' <code> $var = "Bob"; $Var = "Joe"; echo "$var, $Var"; // "Bob, Joe"を出力します。 $4site = 'not yet'; // 無効:数字で始まっている。 $_4site = 'not yet'; //
- 12 Laravel @11_php:02_framework:01_laravel
- r/vendor/bin:$PATH"' >> ~/.bash_profile </code> /var/www/vhost/hogehoge.comにインストールするとする。 <code> # cd /var/www/vhost/hogehoge.com # laravel new </code> ===... ramework 5.7.21 </code> ===== Apache側設定 ===== /var/www/vhost/hogehoge.comにlaravel newしたとする <code> <... lHost *:80> ServerName hogehoge.com DocumentRoot /var/www/vhost/hogehoge.com/public ・ ・ </code> ==== l
- 01 twigについて @11_php:01_twig
- de> $app->get('/test', function() use($app) { $variables['test1'] = 'これはテストです。'; $variables['test2'] = array('テスト1', 'テスト2', 'テスト3'); return $app['twig']->render('test.html.twig', $variables); }); </code> [[http://fivestar.hatenablog
- 02 Silex @11_php:02_framework
- === インストールしたいディレクトリに移動 ===== <code console> $ cd /var/www/html/web/ </code> ===== インストール ===== ==== ... de> 環境 ^ サーバIP ^ DocumentRoot ^ |172.16.20.100|/var/www/html/| サーバのドキュメントルートが/var/www/html/とすると、 サーバIP 172.16.20.100 下記でアクセスすると、「Hello World」が表示される。 http
- 42 Laravel 認証機能 @11_php:02_framework:01_laravel
- tributes that are mass assignable. * * @var array */ protected $fillable = [ ... that should be hidden for arrays. * * @var array */ protected $hidden = [ '... at should be cast to native types. * * @var array */ protected $casts = [ 'e
- 43 Laravel APIトークン名(api_token)を変更 @11_php:02_framework:01_laravel
- licy mappings for the application. * * @var array */ protected $policies = [