Skip to content

Commit 0273263

Browse files
committed
Merge branch 'master' into fix-js-null-values
# Conflicts: # src/resources/views/crud/fields/repeatable.blade.php
2 parents bd8b03c + 76993b8 commit 0273263

File tree

96 files changed

+1295
-980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1295
-980
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<a href="https://backpackforlaravel.com/newsletter">Newsletter</a>
3131
</p>
3232

33+
3334
Quickly build an admin interface for your Eloquent models. Then customize every little detail. Among its features:
3435

3536
- List operation

package-lock.json

Lines changed: 222 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"devDependencies": {
1313
"cross-env": "^7.0.3",
1414
"css-loader": "^5.2.6",
15-
"laravel-mix": "^6.0.27",
15+
"laravel-mix": "^6.0.29",
1616
"lodash": "^4.17.21",
1717
"pace": "0.0.4",
1818
"resolve-url-loader": "^4.0.0",
19-
"sass": "^1.37.0",
19+
"sass": "^1.38.2",
2020
"sass-loader": "^9.0.3",
2121
"vue-template-compiler": "^2.6.14"
2222
},
@@ -59,6 +59,6 @@
5959
"source-sans-pro": "^3.6",
6060
"summernote": "^0.8.18",
6161
"sweetalert": "^2.1.2",
62-
"tinymce": "^5.8.2"
62+
"tinymce": "^5.9.1"
6363
}
6464
}

src/BackpackServiceProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class BackpackServiceProvider extends ServiceProvider
2121
\Backpack\CRUD\app\Console\Commands\CreateUser::class,
2222
\Backpack\CRUD\app\Console\Commands\PublishBackpackMiddleware::class,
2323
\Backpack\CRUD\app\Console\Commands\PublishView::class,
24+
\Backpack\CRUD\app\Console\Commands\RequireDevTools::class,
2425
];
2526

2627
// Indicates if loading of the provider is deferred.
@@ -141,8 +142,7 @@ public function publishFiles()
141142
/**
142143
* Define the routes for the application.
143144
*
144-
* @param \Illuminate\Routing\Router $router
145-
*
145+
* @param \Illuminate\Routing\Router $router
146146
* @return void
147147
*/
148148
public function setupRoutes(Router $router)
@@ -161,8 +161,7 @@ public function setupRoutes(Router $router)
161161
/**
162162
* Load custom routes file.
163163
*
164-
* @param \Illuminate\Routing\Router $router
165-
*
164+
* @param \Illuminate\Routing\Router $router
166165
* @return void
167166
*/
168167
public function setupCustomRoutes(Router $router)

src/Stats.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ private function sendUsageStats()
8282
* It spins up a separate process for this, and doesn't listen for a reponse,
8383
* so it has minimal to no impact on pageload.
8484
*
85-
* @param string $method HTTP Method to use for the request.
86-
* @param string $url URL to point the request at.
87-
* @param array $payload The data you want sent to the URL.
88-
*
85+
* @param string $method HTTP Method to use for the request.
86+
* @param string $url URL to point the request at.
87+
* @param array $payload The data you want sent to the URL.
8988
* @return void
9089
*/
9190
private function makeCurlRequest($method, $url, $payload)
@@ -107,10 +106,9 @@ private function makeCurlRequest($method, $url, $payload)
107106
* geographic location this is usually slower than CURL. However,
108107
* unlike CURL, it works on most machines, so it's reliable.
109108
*
110-
* @param string $method HTTP Method to use for the request.
111-
* @param string $url URL to point the request at.
112-
* @param array $payload The data you want sent to the URL.
113-
*
109+
* @param string $method HTTP Method to use for the request.
110+
* @param string $url URL to point the request at.
111+
* @param array $payload The data you want sent to the URL.
114112
* @return void
115113
*/
116114
private function makeGuzzleRequest($method, $url, $payload)

src/app/Console/Commands/AddCustomRouteContent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ private function customRoutesFileEndLine($file_lines)
9999
/**
100100
* Parse the given file stream and return the line number where a string is found.
101101
*
102-
* @param string $needle The string that's being searched for.
103-
* @param array $haystack The file where the search is being performed.
104-
* @return bool|int The last line number where the string was found. Or false.
102+
* @param string $needle The string that's being searched for.
103+
* @param array $haystack The file where the search is being performed.
104+
* @return bool|int The last line number where the string was found. Or false.
105105
*/
106106
private function getLastLineNumberThatContains($needle, $haystack)
107107
{

src/app/Console/Commands/AddSidebarContent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public function handle()
6565
/**
6666
* Parse the given file stream and return the line number where a string is found.
6767
*
68-
* @param string $needle The string that's being searched for.
69-
* @param array $haystack The file where the search is being performed.
70-
* @return bool|int The last line number where the string was found. Or false.
68+
* @param string $needle The string that's being searched for.
69+
* @param array $haystack The file where the search is being performed.
70+
* @return bool|int The last line number where the string was found. Or false.
7171
*/
7272
private function getLastLineNumberThatContains($needle, $haystack)
7373
{

src/app/Console/Commands/Install.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,14 @@ public function handle()
5757

5858
$this->progressBar->finish();
5959
$this->info(' Backpack installation finished.');
60+
61+
// DevTools
62+
$this->box('Did you know about Backpack DevTools?');
63+
$this->note('DevTools adds a dead-simple web interface to easily generate Models, Migrations, Seeders, Factories, CRUDs, etc.');
64+
$this->note('But it\'s a paid tool. For more info, payment and access, please visit https://backpackforlaravel.com/products/devtools');
65+
66+
if ($this->confirm('Would you like to install Backpack DevTools?', false)) {
67+
$this->call('backpack:require:devtools');
68+
}
6069
}
6170
}

src/app/Console/Commands/PublishBackpackMiddleware.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public function handle()
5555
/**
5656
* Build the class. Replace Backpack namespace with App one.
5757
*
58-
* @param string $name
59-
*
58+
* @param string $name
6059
* @return string
6160
*/
6261
protected function buildClass($name = false)
@@ -70,9 +69,8 @@ protected function buildClass($name = false)
7069
* Replace the namespace for the given stub.
7170
* Replace the User model, if it was moved to App\Models\User.
7271
*
73-
* @param string $stub
74-
* @param string $name
75-
*
72+
* @param string $stub
73+
* @param string $name
7674
* @return $this
7775
*/
7876
protected function makeReplacements(&$stub)

src/app/Console/Commands/PublishView.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public function handle()
6767
/**
6868
* Take a blade file from the vendor folder and publish it to the resources folder.
6969
*
70-
* @param string $file The filename without extension
71-
*
70+
* @param string $file The filename without extension
7271
* @return void
7372
*/
7473
protected function publishFile($file)

0 commit comments

Comments
 (0)