We can get session value or data of a loginned user at AppServiceProvider. The following we will show how to get, share values of session and loginned user to all views. ========= Code: namespace App\Yourapp\Younamespace; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Session; use Illuminate\Support\View; use App; class AppServiceProvider extends ServiceProvider{ public function boot() { $auth = $this->app['auth']; // get Laravel's Auth facades view()->composer('*', function($view) use (&$auth) { // this function coding style is
read moreVuejx 驗證表單欄位值的外掛 vee-validate 使用範例,建議初步熟悉 vee-validate 使用方式後,再來看範例 http://vee-validate.logaretm.com/examples.html
read morePHP 語言的開發框架 Laravel 5.5 從 controller 傳布林值變數到 blade.php 的方式如下: 假設我們從 controller 傳同名變數到 view blade 去 // controller 檔案 class ABCController { public function index(Request $request) { $isBooked = true; return view('home.landing_page', compact('isBooked')); } } // view blade 檔案的部份內
read more形式化驗證 (Formal Verification) https://hackmd.io/s/H1xxp3pF0 另外一篇:思想開通-學數之人必備的特質 http://chowkafat.net/Mathpassage2.html
read more