@@ -8,7 +8,7 @@ |
||
8 | 8 | public function boot() |
9 | 9 | { |
10 | 10 | $this->loadRoutesFrom(__DIR__."/routes/web.php"); |
11 | - $this->loadViewsFrom(__DIR__."/views",'contact'); |
|
11 | + $this->loadViewsFrom(__DIR__."/views", 'contact'); |
|
12 | 12 | $this->loadMigrationsFrom(__DIR__.'/database/migrations'); |
13 | 13 | $this->mergeConfigFrom(__DIR__.'/config/contact.php', 'contact'); |
14 | 14 | $this->publishes([ |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | class ContactController extends Controller |
13 | 13 | { |
14 | - public function index(){ |
|
14 | + public function index() { |
|
15 | 15 | return view('contact::contact'); |
16 | 16 | } |
17 | 17 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | 'message' => 'required', |
24 | 24 | ]); |
25 | 25 | |
26 | - Mail::to(config('contact.send_email_to'))->queue(new ContactMailable($request->message, $request->name,$request->email)); |
|
26 | + Mail::to(config('contact.send_email_to'))->queue(new ContactMailable($request->message, $request->name, $request->email)); |
|
27 | 27 | |
28 | 28 | Contact::create($validatedData); |
29 | 29 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | use Illuminate\Support\Facades\Route; |
3 | 3 | |
4 | -Route::group(['middleware'=>'web','namespace' => 'JamesSingizi\Contact\Http\Controllers'], function () { |
|
4 | +Route::group(['middleware'=>'web', 'namespace' => 'JamesSingizi\Contact\Http\Controllers'], function() { |
|
5 | 5 | |
6 | 6 | Route::get('contact', 'ContactController@index')->name('contact'); |
7 | 7 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('contacts', function (Blueprint $table) { |
|
16 | + Schema::create('contacts', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email'); |